io-wq: perform both unstarted and started work cancelations in one go
authorJens Axboe <axboe@kernel.dk>
Wed, 19 Jan 2022 02:22:32 +0000 (19:22 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Jan 2022 02:27:59 +0000 (19:27 -0700)
commitefdf518459b17e18a93c7c9cb622fd3051dabd0c
treebcb920b57522ce127f22340ad96dd0c967d97f41
parent36e4c58bf044b07204c8c7e6dd7c2384e439921a
io-wq: perform both unstarted and started work cancelations in one go

Rather than split these into two separate lookups and matches, combine
them into one loop. This will become important when we can guarantee
that we don't have a window where a pending work item isn't discoverable
in either state.

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