summaryrefslogtreecommitdiffstats
path: root/mm/mmzone.c
diff options
context:
space:
mode:
authorGlauber Costa2013-02-23 01:34:57 +0100
committerLinus Torvalds2013-02-24 02:50:18 +0100
commite4715f01be697a3730c78f8ffffb595591d6a88c (patch)
tree6ba363f7454d0b8e6b4db8997c8b7fa587f20279 /mm/mmzone.c
parentmemcg: increment static branch right after limit set (diff)
downloadkernel-qcow2-linux-e4715f01be697a3730c78f8ffffb595591d6a88c.tar.gz
kernel-qcow2-linux-e4715f01be697a3730c78f8ffffb595591d6a88c.tar.xz
kernel-qcow2-linux-e4715f01be697a3730c78f8ffffb595591d6a88c.zip
memcg: avoid dangling reference count in creation failure.
When use_hierarchy is enabled, we acquire an extra reference count in our parent during cgroup creation. We don't release it, though, if any failure exist in the creation process. Signed-off-by: Glauber Costa <glommer@parallels.com> Reported-by: Michal Hocko <mhocko@suse.cz> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: Tejun Heo <tj@kernel.org> Cc: Hiroyuki Kamezawa <kamezawa.hiroyuki@gmail.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmzone.c')
0 files changed, 0 insertions, 0 deletions