io_uring: rearrange defer list checks
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 5 Jan 2023 11:22:20 +0000 (11:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 8 Jan 2023 18:18:44 +0000 (11:18 -0700)
commitbc3c0dd146e1f895cba45b3868e9cc44f54ee5d8
tree2807df43b30ae714d5aa17647973a0272a7c941a
parentb7bfaa761d760e72a969d116517eaa12e404c262
io_uring: rearrange defer list checks

There should be nothing in the ->work_llist for non DEFER_TASKRUN rings,
so we can skip flag checks and test the list emptiness directly. Also
move it out of io_run_local_work() for inlining.

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