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>
Mon, 17 Feb 2025 12:34:45 +0000 (05:34 -0700)
commit1533376b131f5d76f8739e89efc78c4687d96bd3
tree2106075391dced301b531b4d34377a35ac941da5
parent5d3e51240d89678b87b5dc6987ea572048a0f0eb
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