OSDN Git Service

io_uring: prioritise read success path over fails
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 14 Oct 2021 15:10:13 +0000 (16:10 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:55 +0000 (05:49 -0600)
commitf80a50a632d6f5c64729563892b0deb95d563f6d
treeec3932c6b5d075881254f649fcf05fdd05d59ba7
parent04f34081c5de35749274cf3bea8d8eb1c79b6ad1
io_uring: prioritise read success path over fails

Rearrange io_read return handling so first we expect it completing
successfully and only then checking for errors, which is a colder path.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/c91c7c2da11815ec8b04b5d872f60dc4cde662c5.1634144845.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c