• Jens Axboe's avatar
    io_uring/net: add io_req_msg_cleanup() helper · d9b44188
    Jens Axboe authored
    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>
    d9b44188
net.c 40.1 KB