task_work: add helper for more targeted task_work canceling
The only exported helper we have right now is task_work_cancel(), which cancels any task_work from a given task where func matches the queued work item. This is a bit too coarse for some use cases. Add a task_work_cancel_match() that allows to more specifically target individual work items outside of purely the callback function used. task_work_cancel() can be trivially implemented on top of that, hence do so. Reviewed-by:Oleg Nesterov <oleg@redhat.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
-
mentioned in commit 2e4e89c5
-
mentioned in commit 9443d76d
-
mentioned in commit ba8f2e53
-
mentioned in commit 97a75e4d
-
mentioned in commit 074fd379
-
mentioned in commit 7281c2ba
-
mentioned in commit 1a76f6e5
-
mentioned in commit 4859abd6
-
mentioned in commit b5959be9
-
mentioned in commit 518e02ed
-
mentioned in commit 5d0d2934
-
mentioned in commit 40ac6ac1
-
mentioned in commit 065469d6
-
mentioned in commit e3f76642
-
mentioned in commit b1e79be3
-
mentioned in commit 7ef98f19
Please sign in to comment