diff options
Diffstat (limited to 'kernel/cgroup.c')
-rw-r--r-- | kernel/cgroup.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index eeb7e49946b2..d3abce2d6455 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -4380,7 +4380,6 @@ static void __init cgroup_init_subsys(struct cgroup_subsys *ss) | |||
4380 | * need to invoke fork callbacks here. */ | 4380 | * need to invoke fork callbacks here. */ |
4381 | BUG_ON(!list_empty(&init_task.tasks)); | 4381 | BUG_ON(!list_empty(&init_task.tasks)); |
4382 | 4382 | ||
4383 | ss->active = 1; | ||
4384 | BUG_ON(online_css(ss, dummytop)); | 4383 | BUG_ON(online_css(ss, dummytop)); |
4385 | 4384 | ||
4386 | mutex_unlock(&cgroup_mutex); | 4385 | mutex_unlock(&cgroup_mutex); |
@@ -4485,7 +4484,6 @@ int __init_or_module cgroup_load_subsys(struct cgroup_subsys *ss) | |||
4485 | } | 4484 | } |
4486 | write_unlock(&css_set_lock); | 4485 | write_unlock(&css_set_lock); |
4487 | 4486 | ||
4488 | ss->active = 1; | ||
4489 | ret = online_css(ss, dummytop); | 4487 | ret = online_css(ss, dummytop); |
4490 | if (ret) | 4488 | if (ret) |
4491 | goto err_unload; | 4489 | goto err_unload; |
@@ -4526,7 +4524,6 @@ void cgroup_unload_subsys(struct cgroup_subsys *ss) | |||
4526 | mutex_lock(&cgroup_mutex); | 4524 | mutex_lock(&cgroup_mutex); |
4527 | 4525 | ||
4528 | offline_css(ss, dummytop); | 4526 | offline_css(ss, dummytop); |
4529 | ss->active = 0; | ||
4530 | 4527 | ||
4531 | if (ss->use_id) | 4528 | if (ss->use_id) |
4532 | idr_destroy(&ss->idr); | 4529 | idr_destroy(&ss->idr); |