diff --git a/fs/io-wq.c b/fs/io-wq.c index 6b41df72c93be29f61604ac36974b4ba8a58c136..807ccdf4640080bfcdf49cbe884653d712785e54 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -430,6 +430,8 @@ static void io_worker_handle_work(struct io_worker *worker) if (signal_pending(current)) flush_signals(current); + cond_resched(); + spin_lock_irq(&worker->lock); worker->cur_work = work; spin_unlock_irq(&worker->lock);