]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
io_uring/cancel: move __io_uring_cancel() into cancel.c
authorJens Axboe <axboe@kernel.dk>
Mon, 3 Nov 2025 18:23:23 +0000 (11:23 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Nov 2025 16:32:08 +0000 (09:32 -0700)
Yet another function that should be in cancel.c, move it over.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/cancel.c
io_uring/io_uring.c

index 2754ea80e2882c60f33f20b0d54a2ea96170d2f1..3ba82a1bfe804f345361d9cb9e7fe6391c3b1ba0 100644 (file)
@@ -422,3 +422,9 @@ bool io_match_task_safe(struct io_kiocb *head, struct io_uring_task *tctx,
        }
        return matched;
 }
+
+void __io_uring_cancel(bool cancel_all)
+{
+       io_uring_unreg_ringfd();
+       io_uring_cancel_generic(cancel_all, NULL);
+}
index 75bd049a1efd428c2d43b6df744ab5e65d01d102..b3be305b99be95e826fd2a9b938af2b737fef712 100644 (file)
@@ -3336,12 +3336,6 @@ end_wait:
        }
 }
 
-void __io_uring_cancel(bool cancel_all)
-{
-       io_uring_unreg_ringfd();
-       io_uring_cancel_generic(cancel_all, NULL);
-}
-
 static struct io_uring_reg_wait *io_get_ext_arg_reg(struct io_ring_ctx *ctx,
                        const struct io_uring_getevents_arg __user *uarg)
 {