Message ID | 20220919175810.689086-10-cascardo@canonical.com |
---|---|
State | New |
Headers | show |
Series | [SRU,Jammy,01/12] io_uring: refactor poll update | expand |
diff --git a/fs/io_uring.c b/fs/io_uring.c index bc4741061258..dd750d6f00fd 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -5720,6 +5720,7 @@ static bool io_poll_remove_all(struct io_ring_ctx *ctx, struct task_struct *tsk, list = &ctx->cancel_hash[i]; hlist_for_each_entry_safe(req, tmp, list, hash_node) { if (io_match_task_safe(req, tsk, cancel_all)) { + hlist_del_init(&req->hash_node); io_poll_cancel_req(req); found = true; }