summaryrefslogtreecommitdiffstats
path: root/io_uring/futex.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--io_uring/futex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io_uring/futex.c b/io_uring/futex.c
index 3c3575303c..792a03df58 100644
--- a/io_uring/futex.c
+++ b/io_uring/futex.c
@@ -159,6 +159,7 @@ bool io_futex_remove_all(struct io_ring_ctx *ctx, struct task_struct *task,
hlist_for_each_entry_safe(req, tmp, &ctx->futex_list, hash_node) {
if (!io_match_task_safe(req, task, cancel_all))
continue;
+ hlist_del_init(&req->hash_node);
__io_futex_cancel(ctx, req);
found = true;
}