Skip to content
Snippets Groups Projects
Commit 05053902 authored by Jens Axboe's avatar Jens Axboe Committed by Willy Tarreau
Browse files

writeback: fixups for !dirty_writeback_centisecs


commit 6423104b upstream.

Commit 69b62d01 fixed up most of the places where we would enter
busy schedule() spins when disabling the periodic background
writeback. This fixes up the sb timer so that it doesn't get
hammered on with the delay disabled, and ensures that it gets
rearmed if needed when /proc/sys/vm/dirty_writeback_centisecs
gets modified.

bdi_forker_task() also needs to check for !dirty_writeback_centisecs
and use schedule() appropriately, fix that up too.

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
Tested-by: default avatarXavier Roche <roche@httrack.com>
Signed-off-by: default avatarJonathan Nieder <jrnieder@gmail.com>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent d9a25c03
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment