]> 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)
commitef6fe4c307c1dd06b8c7d690c706fbdef8b77caf
treec5b160ef4ba5b95a531d4471c948f047d1c45a86
parentd1f8d71c9de924b8eb20043d59994c3db5564e88
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