Commit b5311dbc authored by Jens Axboe's avatar Jens Axboe

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: c3f9109d ("io_uring/kbuf: flag request if buffer pool is empty after buffer pick")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 1a8ec63b
...@@ -676,6 +676,7 @@ static inline void io_recv_prep_retry(struct io_kiocb *req) ...@@ -676,6 +676,7 @@ static inline void io_recv_prep_retry(struct io_kiocb *req)
{ {
struct io_sr_msg *sr = io_kiocb_to_cmd(req, struct io_sr_msg); struct io_sr_msg *sr = io_kiocb_to_cmd(req, struct io_sr_msg);
req->flags &= ~REQ_F_BL_EMPTY;
sr->done_io = 0; sr->done_io = 0;
sr->len = 0; /* get from the provided buffer */ sr->len = 0; /* get from the provided buffer */
req->buf_index = sr->buf_group; req->buf_index = sr->buf_group;
......
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