mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
net/smc: call smc_cdc_msg_send() under send_lock
Call smc_cdc_msg_send() under the connection send_lock to make sure all send operations for one connection are serialized. Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
33f3fcc290
commit
2dee25af42
@ -125,7 +125,10 @@ static int smcr_cdc_get_slot_and_msg_send(struct smc_connection *conn)
|
||||
if (rc)
|
||||
return rc;
|
||||
|
||||
return smc_cdc_msg_send(conn, wr_buf, pend);
|
||||
spin_lock_bh(&conn->send_lock);
|
||||
rc = smc_cdc_msg_send(conn, wr_buf, pend);
|
||||
spin_unlock_bh(&conn->send_lock);
|
||||
return rc;
|
||||
}
|
||||
|
||||
int smc_cdc_get_slot_and_msg_send(struct smc_connection *conn)
|
||||
|
Loading…
Reference in New Issue
Block a user