]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: ensure iopoll runs local task work as well
authorJens Axboe <axboe@kernel.dk>
Sat, 3 Sep 2022 15:52:01 +0000 (09:52 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 16:30:43 +0000 (10:30 -0600)
commit8701912d9594f07eb9e764d01fa097d22e90c67b
tree35f95f765ca36d7c2f4abcfc82d3b6659410139a
parentea754966a9f387679306676adc3fd74305192fd5
io_uring: ensure iopoll runs local task work as well

Combine the two checks we have for task_work running and whether or not
we need to shuffle the mutex into one, so we unify how task_work is run
in the iopoll loop. This helps ensure that local task_work is run when
needed, and also optimizes that path to avoid a mutex shuffle if it's
not needed.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c
io_uring/io_uring.h