memcg: oom wakeup filter
authorKAMEZAWA Hiroyuki <[email protected]>
Wed, 26 May 2010 21:42:36 +0000 (14:42 -0700)
committerLinus Torvalds <[email protected]>
Thu, 27 May 2010 16:12:43 +0000 (09:12 -0700)
commitdc98df5a1b7be402a0e1c71f1b89ccf249ac15ee
treed54f48e26563eadd11114c787b5c27b4e44ebb19
parent595f4b694c2424f2af6e1de74c955bbe9cd7b73d
memcg: oom wakeup filter

memcg's oom waitqueue is a system-wide wait_queue (for handling
hierarchy.) So, it's better to add custom wake function and do filtering
in wake up path.

This patch adds a filtering feature for waking up oom-waiters.  Hierarchy
is properly handled.

Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Reviewed-by: Daisuke Nishimura <[email protected]>
Cc: Balbir Singh <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c