diff options
| author | Jens Axboe <axboe@kernel.dk> | 2025-11-03 11:21:39 -0700 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-04 09:32:08 -0700 |
| commit | 0d677936d67774f1b4ebfb3b26f207320f0fe3c6 (patch) | |
| tree | e320e557cb5c79183ef29b190482246b97bc87da /io_uring/cancel.h | |
| parent | bc82b02218204d89f26fd1fde5aed265f40453d3 (diff) | |
io_uring/cancel: move request/task cancelation logic into cancel.c
Move io_match_task_safe() and helpers into cancel.c, where it belongs.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/cancel.h')
| -rw-r--r-- | io_uring/cancel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/cancel.h b/io_uring/cancel.h index 43e9bb74e9d1..6d5208e9d7a6 100644 --- a/io_uring/cancel.h +++ b/io_uring/cancel.h @@ -23,6 +23,8 @@ int io_try_cancel(struct io_uring_task *tctx, struct io_cancel_data *cd, 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); +bool io_match_task_safe(struct io_kiocb *head, struct io_uring_task *tctx, + bool cancel_all); bool io_cancel_remove_all(struct io_ring_ctx *ctx, struct io_uring_task *tctx, struct hlist_head *list, bool cancel_all, |
