diff --git a/fs/io_uring.c b/fs/io_uring.c index 362189819898821fc76ce6e01bcfbead0591e2ce..f5f38329c823205cf69635d6f2a218241fa13ac2 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -7573,6 +7573,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; }