Skip to contentSkip to conversation

net/smc: no cursor update send in state SMC_INIT

PATCH Applied Ursula Braun 2 participants 2 messages Aug 3, 2018 – Aug 4, 2018

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/smc/smc_cdc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/smc/smc_cdc.c +2 -1
index a7e8d63fc8ae..9bde1e4ca288 100644
@@ -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);
 		}
 	}
 
Signature · 1 line
2.16.4
maintainer Applied
#1 lore raw

From: Ursula Braun <[email protected]>
Date: Fri, 3 Aug 2018 10:38:33 +0200

Quoted 6 lines

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.

Applied, thank you.