diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-11-03 18:22:43 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-11-06 21:55:38 +0100 |
commit | f03baece08188f2e239c0ca0c098c14c71739ffb (patch) | |
tree | e4822f2413609cb1b81bb226abdcaef8dd20ca17 /io_uring/waitid.c | |
parent | io_uring/rsrc: split io_kiocb node type assignments (diff) | |
download | linux-f03baece08188f2e239c0ca0c098c14c71739ffb.tar.xz 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/waitid.c')
-rw-r--r-- | io_uring/waitid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/waitid.c b/io_uring/waitid.c index 6362ec20abc0..9b7c23f96c47 100644 --- a/io_uring/waitid.c +++ b/io_uring/waitid.c @@ -184,7 +184,7 @@ int io_waitid_cancel(struct io_ring_ctx *ctx, struct io_cancel_data *cd, return -ENOENT; } -bool io_waitid_remove_all(struct io_ring_ctx *ctx, struct task_struct *task, +bool io_waitid_remove_all(struct io_ring_ctx *ctx, struct io_uring_task *tctx, bool cancel_all) { struct hlist_node *tmp; @@ -194,7 +194,7 @@ bool io_waitid_remove_all(struct io_ring_ctx *ctx, struct task_struct *task, lockdep_assert_held(&ctx->uring_lock); hlist_for_each_entry_safe(req, tmp, &ctx->waitid_list, hash_node) { - if (!io_match_task_safe(req, task, cancel_all)) + if (!io_match_task_safe(req, tctx, cancel_all)) continue; hlist_del_init(&req->hash_node); __io_waitid_cancel(ctx, req); |