From 071664a9bcbb331eb5aa9dd07f35fd1f78742b96 Mon Sep 17 00:00:00 2001 From: Tejun Heo Date: Mon, 19 Nov 2012 08:13:36 -0800 Subject: [PATCH] --- yaml --- r: 339338 b: refs/heads/master c: 648bb56d076bde31113f09a7d24d95bc8d4155ac h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/cgroup.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 19a9775465de..7e1c12dbd711 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b48c6a80a0f7584056f768268fc12b87745a393f +refs/heads/master: 648bb56d076bde31113f09a7d24d95bc8d4155ac diff --git a/trunk/kernel/cgroup.c b/trunk/kernel/cgroup.c index 6cc693b91c4a..09751657abdc 100644 --- a/trunk/kernel/cgroup.c +++ b/trunk/kernel/cgroup.c @@ -4317,6 +4317,8 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss) printk(KERN_INFO "Initializing cgroup subsys %s\n", ss->name); + mutex_lock(&cgroup_mutex); + /* init base cftset */ cgroup_init_cftsets(ss); @@ -4346,6 +4348,8 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss) if (ss->post_create) ss->post_create(dummytop); + mutex_unlock(&cgroup_mutex); + /* this function shouldn't be used with modular subsystems, since they * need to register a subsys_id, among other things */ BUG_ON(ss->module);