]> 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)
commit291fb6a6b21dc7aa1b2e4425921c35072d870b78
treeb1a748ee1e548329d65e213c2356ce6e00059b45
parent6eeaebfe82e2b9750895d1930c9c0f9fc848d94b
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