mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
io_uring: move finish_wait() outside of loop in cqring_wait()
We don't need to call this for every loop. This is particularly troublesome if we are task_work intensive, and get woken more often than we desire due to that. Just do it at the end, that's always safe as we initialize the waitqueue list head anyway. This can save a considerable amount of hammering on the waitqueue lock, which is also hot from the request completion side. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
775a1f2f99
commit
b4f20bb4e6
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue