]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
memcg: replace cgroup_lock with memcg specific memcg_lock fix
authorGlauber Costa <glommer@parallels.com>
Wed, 20 Feb 2013 02:14:47 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:51 +0000 (16:52 +1100)
Signed-off-by: Glauber Costa <glommer@parallels.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
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>
mm/memcontrol.c

index f4b930d2e82dfb89a4f20f6b16328be8b7812d88..46cdaef78b01f75114051b730704ccc850c49fca 100644 (file)
@@ -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;