diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2020-05-30 17:42:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-31 04:12:25 +0300 |
commit | b8ded9de8db34dd209a3dece94cf54fc414e78f7 (patch) | |
tree | 3dbc406c8c0caec84fbc5763491d86ea13a9a20f /net/smc/smc_cdc.h | |
parent | b86a372201153326bad2c7048aef1bd7accbcbbc (diff) | |
download | linux-b8ded9de8db34dd209a3dece94cf54fc414e78f7.tar.xz |
net/smc: pre-fetch send buffer outside of send_lock
Pre-fetch send buffer for the CDC validation message before entering the
send_lock. Without that the send call might fail with -EBUSY because
there are no free buffers and waiting for buffers is not possible under
send_lock.
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_cdc.h')
-rw-r--r-- | net/smc/smc_cdc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/smc/smc_cdc.h b/net/smc/smc_cdc.h index 2ddcc5fb5ceb..0a0a89abd38b 100644 --- a/net/smc/smc_cdc.h +++ b/net/smc/smc_cdc.h @@ -296,7 +296,9 @@ int smc_cdc_msg_send(struct smc_connection *conn, struct smc_wr_buf *wr_buf, struct smc_cdc_tx_pend *pend); int smc_cdc_get_slot_and_msg_send(struct smc_connection *conn); int smcd_cdc_msg_send(struct smc_connection *conn); -int smcr_cdc_msg_send_validation(struct smc_connection *conn); +int smcr_cdc_msg_send_validation(struct smc_connection *conn, + struct smc_cdc_tx_pend *pend, + struct smc_wr_buf *wr_buf); int smc_cdc_init(void) __init; void smcd_cdc_rx_init(struct smc_connection *conn); |