• Jens Axboe's avatar
    io_uring: punt short reads to async context · 9d93a3f5
    Jens Axboe authored
    We can encounter a short read when we're doing buffered reads and the
    data is partially cached. Right now we just return the short read, but
    that forces the application to read that CQE, then issue another SQE
    to finish the read. That read will not be cached, and hence will result
    in an async punt.
    
    It's more efficient to do that async punt from within the kernel, as
    that will the not need two round trips more to the kernel.
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    9d93a3f5
io_uring.c 76.2 KB