summaryrefslogtreecommitdiff
path: root/io_uring/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-11-03 10:22:43 -0700
committerJens Axboe <axboe@kernel.dk>2024-11-06 13:55:38 -0700
commitf03baece08188f2e239c0ca0c098c14c71739ffb (patch)
treee4822f2413609cb1b81bb226abdcaef8dd20ca17 /io_uring/io_uring.h
parent6f94cbc29adacc15007c5a16295052e674099282 (diff)
downloadlinux-f03baece08188f2e239c0ca0c098c14c71739ffb.tar.gz
linux-f03baece08188f2e239c0ca0c098c14c71739ffb.tar.bz2
linux-f03baece08188f2e239c0ca0c098c14c71739ffb.zip
io_uring: move cancelations to be io_uring_task based
Right now the task_struct pointer is used as the key to match a task, but in preparation for some io_kiocb changes, move it to using struct io_uring_task instead. No functional changes intended in this patch. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.h')
-rw-r--r--io_uring/io_uring.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h
index e3e6cb14de5d..17ffdb1e41c5 100644
--- a/io_uring/io_uring.h
+++ b/io_uring/io_uring.h
@@ -115,7 +115,7 @@ void io_queue_next(struct io_kiocb *req);
void io_task_refs_refill(struct io_uring_task *tctx);
bool __io_alloc_req_refill(struct io_ring_ctx *ctx);
-bool io_match_task_safe(struct io_kiocb *head, struct task_struct *task,
+bool io_match_task_safe(struct io_kiocb *head, struct io_uring_task *tctx,
bool cancel_all);
void io_activate_pollwq(struct io_ring_ctx *ctx);