From: Johannes Weiner Date: Wed, 10 Dec 2014 23:42:39 +0000 (-0800) Subject: mm: memcontrol: convert reclaim iterator to simple css refcounting X-Git-Tag: omap-for-v3.20/drop-legacy-3517~139^2~158 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac8fb31ad2ebd6492d1c5e8f31846b532f03945;p=pandora-kernel.git mm: memcontrol: convert reclaim iterator to simple css refcounting The memcg reclaim iterators use a complicated weak reference scheme to prevent pinning cgroups indefinitely in the absence of memory pressure. However, during the ongoing cgroup core rework, css lifetime has been decoupled such that a pinned css no longer interferes with removal of the user-visible cgroup, and all this complexity is now unnecessary. [mhocko@suse.cz: ensure that the cached reference is always released] Signed-off-by: Johannes Weiner Cc: Vladimir Davydov Cc: David Rientjes Cc: Tejun Heo Signed-off-by: Michal Hocko Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed