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)
commit36e4c58bf044b07204c8c7e6dd7c2384e439921a
treeb1a748ee1e548329d65e213c2356ce6e00059b45
parent081b58204629eff9dd93e7f68ed15c8aa6452a4b
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