]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: get rid of FIXED worker flag
authorJens Axboe <axboe@kernel.dk>
Wed, 1 Sep 2021 19:01:17 +0000 (13:01 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Sep 2021 17:12:16 +0000 (11:12 -0600)
commit7c2205fffab275ee9b3c9b59191cf98a786f2e21
tree40b4e0b40f69458897cab7ba70edba0e1894b639
parentafcedcab38b1bc88a9a2f2a83aee1a3086c4245e
io-wq: get rid of FIXED worker flag

It makes the logic easier to follow if we just get rid of the fixed worker
flag, and simply ensure that we never exit the last worker in the group.
This also means that no particular worker is special.

Just track the last timeout state, and if we have hit it and no work
is pending, check if there are other workers. If yes, then we can exit
this one safely.

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