]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: flip if handling after io_setup_async_rw
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 1 Aug 2020 10:50:02 +0000 (13:50 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 1 Aug 2020 17:02:57 +0000 (11:02 -0600)
commitae710ce246dc5f0df5a74fb613c1cb95e66d982d
treec5b160ef4ba5b95a531d4471c948f047d1c45a86
parent97a9a9669badc689c992c5a42a49526b75db660f
io_uring: flip if handling after io_setup_async_rw

As recently done with with send/recv, flip the if after
rw_verify_aread() in io_{read,write}() and tabulise left bits left.
This removes mispredicted by a compiler jump on the success/fast path.

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