io_uring/cancel: add generic remove_all helper
authorJens Axboe <axboe@kernel.dk>
Wed, 5 Feb 2025 19:48:56 +0000 (12:48 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 6 Feb 2025 14:08:47 +0000 (07:08 -0700)
commit75253b76ac4b3f67bc9d68688eae3bbb69e256ef
tree7cdb64ba9eed29d05212b3534359e39acee40d36
parent641492f1733609b7abebf74ea9ebba6c29b84e79
io_uring/cancel: add generic remove_all helper

Any opcode that is cancelable ends up defining its own remove all
helper, which iterates the pending list and cancels matches. Add a
generic helper for it, which can be used by them.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/cancel.c
io_uring/cancel.h