We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2daffbd commit 446be55Copy full SHA for 446be55
net/rxrpc/sendmsg.c
@@ -303,6 +303,11 @@ static int rxrpc_send_data(struct rxrpc_sock *rx,
303
sk_clear_bit(SOCKWQ_ASYNC_NOSPACE, sk);
304
305
reload:
306
+ txb = call->tx_pending;
307
+ call->tx_pending = NULL;
308
+ if (txb)
309
+ rxrpc_see_txbuf(txb, rxrpc_txbuf_see_send_more);
310
+
311
ret = -EPIPE;
312
if (sk->sk_shutdown & SEND_SHUTDOWN)
313
goto maybe_error;
@@ -329,11 +334,6 @@ static int rxrpc_send_data(struct rxrpc_sock *rx,
329
334
330
335
}
331
336
332
- txb = call->tx_pending;
333
- call->tx_pending = NULL;
- if (txb)
- rxrpc_see_txbuf(txb, rxrpc_txbuf_see_send_more);
-
337
do {
338
if (!txb) {
339
size_t remain, bufsize, chunk, offset;
0 commit comments