]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: abstract out task work running
authorJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 17:29:10 +0000 (11:29 -0600)
committerJens Axboe <axboe@kernel.dk>
Sun, 5 Jul 2020 21:05:22 +0000 (15:05 -0600)
commite33c61bb336141be1d352e6f9da3f3e952ea8b30
tree0065f60d48c45304d78842264fd9375685469d63
parentd0fcdd50cfc18ad170655e5cffb2c268bdfe560f
io_uring: abstract out task work running

Provide a helper to run task_work instead of checking and running
manually in a bunch of different spots. While doing so, also move the
task run state setting where we run the task work. Then we can move it
out of the callback helpers. This also helps ensure we only do this once
per task_work list run, not per task_work item.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c