]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: cleanup handling of the two task_work lists
authorJens Axboe <axboe@kernel.dk>
Sat, 21 May 2022 15:17:05 +0000 (09:17 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 21 May 2022 15:17:05 +0000 (09:17 -0600)
commit50e0475b87f44a6752cfe352e4379c0111bb237a
treef9751275d85a0f7fbee773a8df7c2af866bb60c0
parent13a09258b5ce94e2c2fcdcf5e818d05e93fa0757
io_uring: cleanup handling of the two task_work lists

Rather than pass in a bool for whether or not this work item needs to go
into the priority list or not, provide separate helpers for it. For most
use cases, this also then gets rid of the branch for non-priority task
work.

While at it, rename the prior_task_list to prio_task_list. Prior is
a confusing name for it, as it would seem to indicate that this is the
previous task_work list. prio makes it clear that this is a priority
task_work list.

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