Skip to content

Commit b5311db

Browse files
committed
io_uring/net: clear REQ_F_BL_EMPTY in the multishot retry handler
This flag should not be persistent across retries, so ensure we clear it before potentially attemting a retry. Fixes: c3f9109 ("io_uring/kbuf: flag request if buffer pool is empty after buffer pick") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 1a8ec63 commit b5311db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

io_uring/net.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ static inline void io_recv_prep_retry(struct io_kiocb *req)
676676
{
677677
struct io_sr_msg *sr = io_kiocb_to_cmd(req, struct io_sr_msg);
678678

679+
req->flags &= ~REQ_F_BL_EMPTY;
679680
sr->done_io = 0;
680681
sr->len = 0; /* get from the provided buffer */
681682
req->buf_index = sr->buf_group;

0 commit comments

Comments
 (0)