]> 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)
commitf7b4bc9a8ec882e965410fcd6b46f53108aeb32c
tree0873d6156fd575f1cc93236dd17ca105cd46e99d
parent2005cc896c919aa2b2246f7cff2e4c5758e9c863
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