Skip to content
Snippets Groups Projects
Commit cc34d833 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/net: don't clear REQ_F_NEED_CLEANUP unconditionally


io_req_msg_cleanup() relies on the fact that io_netmsg_recycle() will
always fully recycle, but that may not be the case if the msg cache
was already full. To ensure that normal cleanup always gets run,
let io_netmsg_recycle() deal with clearing the relevant cleanup flags,
as it knows exactly when that should be done.

Cc: stable@vger.kernel.org
Reported-by: default avatarDavid Wei <dw@davidwei.uk>
Fixes: 75191341 ("io_uring/net: add iovec recycling")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent bcb0fda3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment