]> git.baikalelectronics.ru Git - kernel.git/commit
vmstat: make vmstat_update deferrable
authorMichal Hocko <mhocko@suse.com>
Fri, 5 Feb 2016 23:36:27 +0000 (15:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Feb 2016 02:10:40 +0000 (18:10 -0800)
commitb875c316751026ebb3a970c6f6ed031b7110a9e0
treefd5dc287e1bbd2088841551079e389ed75b37993
parent112fab0de8cd529aa8c27728b67719c4e7efe331
vmstat: make vmstat_update deferrable

Commit b2c67980ea6e ("vmstat: make vmstat_updater deferrable again and
shut down on idle") made vmstat_shepherd deferrable.  vmstat_update
itself is still useing standard timer which might interrupt idle task.
This is possible because "mm, vmstat: make quiet_vmstat lighter" removed
cancel_delayed_work from the quiet_vmstat.

Change vmstat_work to use DEFERRABLE_WORK to prevent from pointless
wakeups from the idle context.

Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Michal Hocko <mhocko@suse.com>
Cc: Mike Galbraith <umgwanakikbuti@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmstat.c