]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: invoke work cancelation with wqe->lock held
authorJens Axboe <axboe@kernel.dk>
Wed, 19 Jan 2022 02:18:20 +0000 (19:18 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 19 Jan 2022 02:27:59 +0000 (19:27 -0700)
commit1d86d4f2284c8aceabeaf6e89ccb4f89e7023953
treeb1a748ee1e548329d65e213c2356ce6e00059b45
parenta92cd36c6245758ee7b097b2a6a54646f5b2da75
io-wq: invoke work cancelation with wqe->lock held

io_wqe_cancel_pending_work() grabs it internally, grab it upfront
instead. For the running work cancelation, grab the lock around it as
well.

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