Commit 5607016c authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller

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: default avatarUrsula Braun <ubraun@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f664e37d
...@@ -233,6 +233,7 @@ static void smc_cdc_msg_recv_action(struct smc_sock *smc, ...@@ -233,6 +233,7 @@ static void smc_cdc_msg_recv_action(struct smc_sock *smc,
/* force immediate tx of current consumer cursor, but /* force immediate tx of current consumer cursor, but
* under send_lock to guarantee arrival in seqno-order * under send_lock to guarantee arrival in seqno-order
*/ */
if (smc->sk.sk_state != SMC_INIT)
smc_tx_sndbuf_nonempty(conn); smc_tx_sndbuf_nonempty(conn);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment