diff --git a/fs/io_uring.c b/fs/io_uring.c index e6f51434afbcd3cdffa24d14179821ce163a8771..649f5c0b6d87cad9e99be7c52542eb6137658bfb 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -7343,7 +7343,7 @@ static void io_ring_ctx_wait_and_kill(struct io_ring_ctx *ctx) * it could cause shutdown to hang. */ while (ctx->sqo_thread && !wq_has_sleeper(&ctx->sqo_wait)) - cpu_relax(); + cond_resched(); io_kill_timeouts(ctx); io_poll_remove_all(ctx);