diff options
Diffstat (limited to 'io_uring/cancel.c')
| -rw-r--r-- | io_uring/cancel.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/io_uring/cancel.c b/io_uring/cancel.c index 07b8d852218b..65e04063e343 100644 --- a/io_uring/cancel.c +++ b/io_uring/cancel.c @@ -2,10 +2,8 @@ #include <linux/kernel.h> #include <linux/errno.h> #include <linux/fs.h> -#include <linux/file.h> #include <linux/mm.h> #include <linux/slab.h> -#include <linux/namei.h> #include <linux/nospec.h> #include <linux/io_uring.h> @@ -21,6 +19,7 @@ #include "waitid.h" #include "futex.h" #include "cancel.h" +#include "wait.h" struct io_cancel { struct file *file; @@ -539,7 +538,7 @@ __cold bool io_uring_try_cancel_requests(struct io_ring_ctx *ctx, /* SQPOLL thread does its own polling */ if ((!(ctx->flags & IORING_SETUP_SQPOLL) && cancel_all) || is_sqpoll_thread) { - while (!wq_list_empty(&ctx->iopoll_list)) { + while (!list_empty(&ctx->iopoll_list)) { io_iopoll_try_reap_events(ctx); ret = true; cond_resched(); |
