]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: ensure read requests go through -ERESTART* transformation
authorJens Axboe <axboe@kernel.dk>
Tue, 25 Aug 2020 18:59:22 +0000 (12:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 25 Aug 2020 18:59:22 +0000 (12:59 -0600)
commit52a0f858f6f9a031848abbb7bdfb0bb7496e7c68
tree0873d6156fd575f1cc93236dd17ca105cd46e99d
parentc69dbb42359f77ff804a5ed6f4797748d3ac2edc
io_uring: ensure read requests go through -ERESTART* transformation

We need to call kiocb_done() for any ret < 0 to ensure that we always
get the proper -ERESTARTSYS (and friends) transformation done.

At some point this should be tied into general error handling, so we
can get rid of the various (mostly network) related commands that check
and perform this substitution.

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