]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: split bounded and unbounded work into separate lists
authorJens Axboe <axboe@kernel.dk>
Tue, 31 Aug 2021 19:57:32 +0000 (13:57 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Sep 2021 18:35:30 +0000 (12:35 -0600)
commit72ddc8a9b03e89884a14df0a14dbcad2bec632bd
tree585b3e784204e06dbdc4882debcf41c0dd808215
parent6b265b7badfff3fa25ae115013c700cb7588d219
io-wq: split bounded and unbounded work into separate lists

We've got a few issues that all boil down to the fact that we have one
list of pending work items, yet two different types of workers to
serve them. This causes some oddities around workers switching type and
even hashed work vs regular work on the same bounded list.

Just separate them out cleanly, similarly to how we already do
accounting of what is running. That provides a clean separation and
removes some corner cases that can cause stalls when handling IO
that is punted to io-wq.

Fixes: 60f0300f06b2 ("io-wq: check max_worker limits if a worker transitions bound state")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c