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>
Sun, 4 Apr 2021 21:27:26 +0000 (15:27 -0600)
commitfa9d53e2d6c04253a45d9147270f257bf1eb0233
tree524f4ddcd82487a027aae01cdf3b0d8c3ffbe729
parent5bb8618ddbe8d2d12e24dc47f7ac69a7309b91ee
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