Searched hist:"7255 cd894539a96fefab9180185d268647c7341b" (Results 1 – 1 of 1) sorted by relevance
/linux/io_uring/ |
H A D | sqpoll.c | diff 7255cd894539a96fefab9180185d268647c7341b Tue Jul 30 22:56:06 CEST 2024 Olivier Langlois <olivier@trillion01.com> io_uring: micro optimization of __io_sq_thread() condition
reverse the order of the element evaluation in an if statement.
for many users that are not using iopoll, the iopoll_list will always evaluate to false after having made a memory access whereas to_submit is very likely already loaded in a register.
Signed-off-by: Olivier Langlois <olivier@trillion01.com> Reviewed-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/052ca60b5c49e7439e4b8bd33bfab4a09d36d3d6.1722374371.git.olivier@trillion01.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
|