mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
io-wq: don't resched if there is no work
This little tweak restores the behaviour that was before the recent io_worker_handle_work() optimisation patches. It makes the function do cond_resched() and flush_signals() only if there is an actual work to execute. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
2293b41958
commit
d78298e73a
1 changed files with 6 additions and 4 deletions
10
fs/io-wq.c
10
fs/io-wq.c
Loading…
Add table
Add a link
Reference in a new issue