• J
    io_uring: punt short reads to async context · 9d93a3f5
    Jens Axboe 提交于
    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: NJens Axboe <axboe@kernel.dk>
    9d93a3f5
io_uring.c 76.2 KB