]> 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)
commite16e9443997b00052420815a62da7d69a12e4864
treea99fcebbf7eb87b9b6f8ebf684ecc352d3431ad1
parent43b54a54b2675674f839f090dc059f55b9f28cbe
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