diff options
Diffstat (limited to '')
-rw-r--r-- | io_uring/io-wq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/io_uring/io-wq.c b/io_uring/io-wq.c index d36d0bd9847d..c4af99460399 100644 --- a/io_uring/io-wq.c +++ b/io_uring/io-wq.c @@ -429,6 +429,8 @@ static void io_wq_dec_running(struct io_worker *worker) if (!atomic_dec_and_test(&acct->nr_running)) return; + if (!worker->cur_work) + return; if (!io_acct_run_queue(acct)) return; |