diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-06-23 09:00:24 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-07-17 10:05:48 -0600 |
commit | aa5cd116f3c25c05e4724d7b5e24dc9ed9020a12 (patch) | |
tree | fdbf8a63cdfd46a8773c5de4b804f2b127e44857 /io_uring/cancel.h | |
parent | faa9c0ee3cab9c68b79183c9e0111ba967d9f402 (diff) |
io_uring/cancel: abstract out request match helper
We have different match code in a variety of spots. Start the cleanup of
this by abstracting out a helper that can be used to check if a given
request matches the cancelation criteria outlined in io_cancel_data.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/cancel.h')
-rw-r--r-- | io_uring/cancel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/cancel.h b/io_uring/cancel.h index 6a59ee484d0c..496ce4dac78e 100644 --- a/io_uring/cancel.h +++ b/io_uring/cancel.h @@ -21,3 +21,4 @@ int io_try_cancel(struct io_uring_task *tctx, struct io_cancel_data *cd, void init_hash_table(struct io_hash_table *table, unsigned size); int io_sync_cancel(struct io_ring_ctx *ctx, void __user *arg); +bool io_cancel_req_match(struct io_kiocb *req, struct io_cancel_data *cd); |