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, 11 Apr 2021 23:41:59 +0000 (17:41 -0600)
commit9532b99bd9ca3f8f2f17b38500a8901ac1e7baee
treee03b80a6331f6fbe7521e6b33817ac2b8f1f65d6
parentab454438aa8dc9eb113df7d00f2cf9ec628a26ce
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