]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: cancel task_work on exit only targeting the current 'wq'
authorJens Axboe <axboe@kernel.dk>
Fri, 2 Apr 2021 01:57:07 +0000 (19:57 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 01:30:25 +0000 (19:30 -0600)
commitdfd59ab42b8d385ecbed42ac9e5f2f8f3d50bdaa
tree300d3b98eacd64ba7377079eb7156977a64b2c01
parent37c2a985648619937f18fa5c4eb8b5f790bf17f5
io-wq: cancel task_work on exit only targeting the current 'wq'

With using task_work_cancel(), we're potentially canceling task_work
that isn't related to this specific io_wq. Use the newly added
task_work_cancel_match() to ensure that we only remove and cancel work
items that are specific to this io_wq.

Fixes: 96340f5adddc ("io-wq: eliminate the need for a manager thread")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c