io_uring: optimise non-timeout waiting
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Jan 2023 11:22:28 +0000 (11:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 8 Jan 2023 18:18:44 +0000 (11:18 -0700)
commiteaf9f483c9cbd672061befa6220cf52a73bcd482
tree0c016c3b39946049a265227e9a76deac3be592e0
parentb07358e24f8bdd06a426f2ccaf7dfcf9216ba357
io_uring: optimise non-timeout waiting

Unlike the jiffy scheduling version, schedule_hrtimeout() jumps a few
functions before getting into schedule() even if there is no actual
timeout needed. Some tests showed that it takes up to 1% of CPU cycles.

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