]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: make io_wqe_cancel_work() take a match handler
authorJens Axboe <axboe@kernel.dk>
Sun, 9 Feb 2020 02:13:32 +0000 (19:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 9 Feb 2020 16:55:37 +0000 (09:55 -0700)
commit117a2124f06efd97c0fb8c6a6a4dc726ecbef0be
treea99fcebbf7eb87b9b6f8ebf684ecc352d3431ad1
parent99a6909d092d6da05f5f0e4d531f00b11c770cf1
io-wq: make io_wqe_cancel_work() take a match handler

We want to use the cancel functionality for canceling based on not
just the work itself. Instead of matching on the work address
manually, allow a match handler to tell us if we found the right work
item or not.

No functional changes in this patch.

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