]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - mm/page-writeback.c
mm/page-writeback.c: make changes of dirty_writeback_centisecs take effect immediately
authorYafang Shao <laoar.shao@gmail.com>
Sat, 14 Oct 2017 08:38:27 +0000 (16:38 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 14 Oct 2017 15:14:35 +0000 (09:14 -0600)
commit515c24c13c7ff1262cdb40fe631c6391e99c0996
tree0f466f8dda1f02b4d752e5c7362829a74b56a9c2
parentfc186311f2233bb3f69f22b96babdf16a57c88a9
mm/page-writeback.c: make changes of dirty_writeback_centisecs take effect immediately

This patch is the followup of the prvious patch:
[writeback: schedule periodic writeback with sysctl].

There's another issue to fix.
For example,
- When the tunable was set to one hour and is reset to one second, the
  new setting will not take effect for up to one hour.

Kicking the flusher threads immediately fixes it.

Cc: Jens Axboe <axboe@kernel.dk>
Cc: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mm/page-writeback.c