[patch 0/2] mm: memcontrol: fix race between migration and writeback

Johannes Weiner
2014-10-22T18:29:26Z

This is fall-out from the memcg lifetime rework in 3.17, where
writeback statistics can get lost against a migrating page.

The (-stable) fix is adapting the page stat side to the new lifetime
rules, rather than making an exception specifically for them, which
seems less error prone and generally the right way forward.

include/linux/memcontrol.h | 58 ++++++++++++++--------------------------------
include/linux/mm.h | 1 -
mm/memcontrol.c | 54 ++++++++++++++++++------------------------
mm/page-writeback.c | 43 ++++++++++++----------------------
mm/rmap.c | 20 ++++++++--------
5 files changed, 64 insertions(+), 112 deletions(-)