summaryrefslogtreecommitdiff
path: root/io_uring/cancel.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2023-06-23 18:00:24 +0300
committerJens Axboe <axboe@kernel.dk>2023-07-17 19:05:48 +0300
commitaa5cd116f3c25c05e4724d7b5e24dc9ed9020a12 (patch)
treefdbf8a63cdfd46a8773c5de4b804f2b127e44857 /io_uring/cancel.h
parentfaa9c0ee3cab9c68b79183c9e0111ba967d9f402 (diff)
downloadlinux-aa5cd116f3c25c05e4724d7b5e24dc9ed9020a12.tar.xz
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.h1
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);