]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: drop bogus RCU locking from mem_cgroup_same_or_subtree()
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 10 Dec 2014 23:44:33 +0000 (15:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:08 +0000 (17:41 -0800)
commit397bcdacc56d5ba58475a084fa02292cf181ddf9
tree5dffdf758736c83b6bfe8b6ada0dbb99d992c0f5
parent5fa807de6f7393f84cf71641dee736535047f619
mm: memcontrol: drop bogus RCU locking from mem_cgroup_same_or_subtree()

None of the mem_cgroup_same_or_subtree() callers actually require it to
take the RCU lock, either because they hold it themselves or they have css
references.  Remove it.

To make the API change clear, rename the leftover helper to
mem_cgroup_is_descendant() to match cgroup_is_descendant().

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Vladimir Davydov <vdavydov@parallels.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>
include/linux/memcontrol.h
mm/memcontrol.c
mm/oom_kill.c