]> 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)
commit43c6c39fead34a228b9006fb665da1f7082cd03e
treee0a9844d755b7ca81bee15fa3b15ea74208ce7f1
parentafd8935c4ef67ba6465d052dd2f8c918d548c6a8
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