io_uring: do not run task work at the start of io_uring_enter
authorDylan Yudaken <dylany@fb.com>
Tue, 30 Aug 2022 12:50:09 +0000 (05:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 16:30:42 +0000 (10:30 -0600)
commit2327337b881d3f24949da4a4d34a6e657a71a79d
tree9d361c8852e2364e713429d6a66a0355d3810cfc
parentb4c98d59a787eff4c8ee983bcf68266ce2199df6
io_uring: do not run task work at the start of io_uring_enter

This is not needed, and it is normally better to wait for task work until
after submissions. This will allow greater batching if either work arrives
in the meanwhile, or if the submissions cause task work to be queued up.

For SQPOLL this also no longer runs task work, but this is handled inside
the SQPOLL loop anyway.

For IOPOLL io_iopoll_check will run task work anyway

And otherwise io_cqring_wait will run task work

Suggested-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220830125013.570060-4-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c