]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: catch -EIO from buffered issue request failure
authorJens Axboe <axboe@kernel.dk>
Mon, 1 Jun 2020 16:00:27 +0000 (10:00 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Jun 2020 02:44:25 +0000 (20:44 -0600)
commitbee0e310c8916ce1c156a62a6264bf0c79fe7cee
tree1d2e009bdf3fc22219108545dd5c0e8022bf19db
parent14b4808c735e65199e166006b8fd6f2eb87f7e7f
io_uring: catch -EIO from buffered issue request failure

-EIO bubbles up like -EAGAIN if we fail to allocate a request at the
lower level. Play it safe and treat it like -EAGAIN in terms of sync
retry, to avoid passing back an errant -EIO.

Catch some of these early for block based file, as non-mq devices
generally do not support NOWAIT. That saves us some overhead by
not first trying, then retrying from async context. We can go straight
to async punt instead.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c