VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Hillf Danton <hdanton@sina.com> 2019-12-24 09:14:29 -0700 committer: Jens Axboe <axboe@kernel.dk> 2019-12-24 09:14:29 -0700 commit: fd1c4bc6e9b34a5e4fe7a3130a49380ef9d7037c parent: 1f424e8bd18754d27b15f49359004b0cea344fb5
Commit Summary:
io-wq: add cond_resched() to worker thread
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c
index a1c85458f021..541c8a3e0bbb 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -429,6 +429,8 @@ next:
 		if (signal_pending(current))
 			flush_signals(current);
 
+		cond_resched();
+
 		spin_lock_irq(&worker->lock);
 		worker->cur_work = work;
 		spin_unlock_irq(&worker->lock);