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

io_uring: don't use retry based buffered reads for non-async bdev



Some block devices, like dm, bubble back -EAGAIN through the completion
handler. We check for this in io_read(), but don't honor it for when
we have copied the iov. Return -EAGAIN for this case before retrying,
to force punt to io-wq.

Fixes: bcf5a063 ("io_uring: support true async buffered reads, if file provides it")
Reported-by: default avatarZorro Lang <zlang@redhat.com>
Tested-by: default avatarZorro Lang <zlang@redhat.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 8f3d7496
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