]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: add cond_resched() to worker thread
authorHillf Danton <hdanton@sina.com>
Tue, 24 Dec 2019 16:14:29 +0000 (09:14 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Dec 2019 16:14:29 +0000 (09:14 -0700)
commit4c31f4b68bd5cfc7b549263ad562399ac65fbfe0
treee0a9844d755b7ca81bee15fa3b15ea74208ce7f1
parent1df4448e5c7f7c63f5d952dd121cd1cb0dda11f6
io-wq: add cond_resched() to worker thread

Reschedule the current IO worker to cut the risk that it is becoming
a cpu hog.

Signed-off-by: Hillf Danton <hdanton@sina.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c