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)
commitf95dc207b93da9c88ddbb7741ec3730c6657b88e
tree585b3e784204e06dbdc4882debcf41c0dd808215
parent0242f6426ea78fbe3933b44f8c55ae93ec37f6cc
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: ecc53c48c13d ("io-wq: check max_worker limits if a worker transitions bound state")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c