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)
commit00d23d516e2e7900cd1bd577c1f84794ae7ff3a7
tree0873d6156fd575f1cc93236dd17ca105cd46e99d
parent9dab14b81807a40dab8e464ec87043935c562c2c
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