From: Glauber Costa Date: Wed, 20 Feb 2013 02:14:47 +0000 (+1100) Subject: memcg: replace cgroup_lock with memcg specific memcg_lock fix X-Git-Tag: next-20130220~1^2~440 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3ad3673d1d673b70874f572d7ac8161774d5222c;p=karo-tx-linux.git memcg: replace cgroup_lock with memcg specific memcg_lock fix Signed-off-by: Glauber Costa Reported-by: Dan Carpenter Acked-by: Michal Hocko Cc: Tejun Heo Cc: Hiroyuki Kamezawa Cc: Johannes Weiner Signed-off-by: Andrew Morton --- diff --git a/mm/memcontrol.c b/mm/memcontrol.c index f4b930d2e82d..46cdaef78b01 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -5736,7 +5736,7 @@ static int mem_cgroup_oom_control_write(struct cgroup *cgrp, mutex_lock(&memcg_create_mutex); /* oom-kill-disable is a flag for subhierarchy. */ if ((parent->use_hierarchy) || memcg_has_children(memcg)) { - cgroup_unlock(); + mutex_unlock(&memcg_create_mutex); return -EINVAL; } memcg->oom_kill_disable = val;