History

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.

Ursula Braun committed 8 years ago

Commit 56070161 parent f664e371 file · +2 −1Browse files

Unified · Split

net/smc/smc_cdc.c+2−1
@@ -233,7 +233,8 @@ static void smc_cdc_msg_recv_action(struct smc_sock *smc, · 232 unmodified lines
233233 /* force immediate tx of current consumer cursor, but
234234 * under send_lock to guarantee arrival in seqno-order
235235 */
236− smc_tx_sndbuf_nonempty(conn);
236+ if (smc->sk.sk_state != SMC_INIT)
237+ smc_tx_sndbuf_nonempty(conn);
237238 }
238239 }
239240

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t