From 3ad3673d1d673b70874f572d7ac8161774d5222c Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Wed, 20 Feb 2013 13:14:47 +1100 Subject: [PATCH] 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 --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5