diff --git a/fs/io_uring.c b/fs/io_uring.c index bcc26fc04d005b4ddf3951d39278d7a86dedb3c0..239cbcf439a2d5f40a0ab85a377818513d588104 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -8757,7 +8757,8 @@ static void io_disable_sqo_submit(struct io_ring_ctx *ctx) mutex_unlock(&ctx->uring_lock); /* make sure callers enter the ring to get error */ - io_ring_set_wakeup_flag(ctx); + if (ctx->rings) + io_ring_set_wakeup_flag(ctx); } /*