OSDN Git Service

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)
commit00bcda13dcbf6bf7fa6f2a5886dd555362de8cfa
treea99fcebbf7eb87b9b6f8ebf684ecc352d3431ad1
parent0bdbdd08a8f991bdaee54465a168c0795ea5d28b
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