io_uring: optimise rw complete error handling
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 22 Mar 2021 01:58:34 +0000 (01:58 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Mar 2021 13:47:12 +0000 (07:47 -0600)
commit1b52287888efbda3223debcf5c5f4e62b91e2a3e
tree3dbaf23c6e45507d260fb14e4183e12d87e20bde
parent190bfe2463b75a93e3d0a621c372e4b05c355ffc
io_uring: optimise rw complete error handling

Expect read/write to succeed and create a hot path for this case, in
particular hide all error handling with resubmission under a single
check with the desired result.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c