Skip to content
Commit d9b44188 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/net: add io_req_msg_cleanup() helper



For the fast inline path, we manually recycle the io_async_msghdr and
free the iovec, and then clear the REQ_F_NEED_CLEANUP flag to avoid
that needing doing in the slower path. We already do that in 2 spots, and
in preparation for adding more, add a helper and use it.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent fb6328bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment