summaryrefslogtreecommitdiff
path: root/arch/microblaze
diff options
context:
space:
mode:
authorHugh Dickins <hughd@google.com>2012-06-20 19:52:58 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2012-06-20 21:39:35 (GMT)
commit3a981f482cc29f7d0aeab509e51ea15519a6e961 (patch)
treeeb7f1f553ffbb99776fdd55216e679d4915f3b18 /arch/microblaze
parent61eafb00d55dfbccdfce543c6b60e369ff4f8f18 (diff)
downloadlinux-3a981f482cc29f7d0aeab509e51ea15519a6e961.tar.xz
memcg: fix use_hierarchy css_is_ancestor oops regression
If use_hierarchy is set, reclaim testing soon oopses in css_is_ancestor() called from __mem_cgroup_same_or_subtree() called from page_referenced(): when processes are exiting, it's easy for mm_match_cgroup() to pass along a NULL memcg coming from a NULL mm->owner. Check for that in __mem_cgroup_same_or_subtree(). Return true or false? False because we cannot know if it was in the hierarchy, but also false because it's better not to count a reference from an exiting process. Signed-off-by: Hugh Dickins <hughd@google.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/microblaze')
0 files changed, 0 insertions, 0 deletions