diff --git a/fs/io_uring.c b/fs/io_uring.c index a0680046ff3c..26bf488096b2 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -6939,6 +6939,8 @@ static void io_wq_submit_work(struct io_wq_work *work) * wait for request slots on the block side. */ if (!needs_poll) { + if (!(req->ctx->flags & IORING_SETUP_IOPOLL)) + break; cond_resched(); continue; }