writeback: fixups for !dirty_writeback_centisecs
authorJens Axboe <jens.axboe@oracle.com>
Fri, 21 May 2010 18:00:35 +0000 (20:00 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 21 May 2010 18:00:35 +0000 (20:00 +0200)
commit6423104b6a1e6f0c18be60e8c33f02d263331d5e
treee22957400e9679bf82b62e03d6bd831181053945
parentf9eadbbd424c083b8005c7b738f644611b9ef489
writeback: fixups for !dirty_writeback_centisecs

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: Jens Axboe <jens.axboe@oracle.com>
include/linux/backing-dev.h
mm/backing-dev.c
mm/page-writeback.c