mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
net/smc: no cursor update send in state SMC_INIT
If a writer blocked condition is received without data, the current consumer cursor is immediately sent. Servers could already receive this condition in state SMC_INIT without finished tx-setup. This patch avoids sending a consumer cursor update in this case. Signed-off-by: Ursula Braun <ubraun@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f664e37dcc
commit
5607016cd1
@ -233,7 +233,8 @@ static void smc_cdc_msg_recv_action(struct smc_sock *smc,
|
||||
/* force immediate tx of current consumer cursor, but
|
||||
* under send_lock to guarantee arrival in seqno-order
|
||||
*/
|
||||
smc_tx_sndbuf_nonempty(conn);
|
||||
if (smc->sk.sk_state != SMC_INIT)
|
||||
smc_tx_sndbuf_nonempty(conn);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user