memcg: avoid oom during moving charge
authorDaisuke Nishimura <[email protected]>
Wed, 10 Mar 2010 23:22:16 +0000 (15:22 -0800)
committerLinus Torvalds <[email protected]>
Fri, 12 Mar 2010 23:52:36 +0000 (15:52 -0800)
commit8033b97c9b5ef063e3f4bf2efe1cd0a22093aaff
tree0d3dbf74d6c307d425d5d13a5c7c1efbf6c079f2
parent854ffa8d104e44111fec96764c0e0cb29223d54c
memcg: avoid oom during moving charge

This move-charge-at-task-migration feature has extra charges on
"to"(pre-charges) and "from"(left-over charges) during moving charge.
This means unnecessary oom can happen.

This patch tries to avoid such oom.

Signed-off-by: Daisuke Nishimura <[email protected]>
Cc: Balbir Singh <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Li Zefan <[email protected]>
Cc: Paul Menage <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c