• Jens Axboe's avatar
    io_uring: fix pre-prepped issue with force_nonblock == true · b7bb4f7d
    Jens Axboe authored
    Some of these code paths assume that any force_nonblock == true issue
    is not prepped, but that's not true if we did prep as part of link setup
    earlier. Check if we already have an async context allocate before
    setting up a new one.
    
    Cleanup the async context setup in general, we have a lot of duplicated
    code there.
    
    Fixes: 03b1230c ("io_uring: ensure async punted sendmsg/recvmsg requests copy data")
    Fixes: f67676d1 ("io_uring: ensure async punted read/write requests copy iovec")
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    b7bb4f7d
io_uring.c 126 KB