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

io_uring: punt short reads to async context



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>
parent 87e5e6da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment