summaryrefslogtreecommitdiffstats
path: root/kernel/cgroup
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cgroup')
-rw-r--r--kernel/cgroup/cgroup.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index e9a377dc5bdb..e0a558c4d358 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -3147,13 +3147,6 @@ static int cgroup_enable_threaded(struct cgroup *cgrp)
return -EOPNOTSUPP;
/*
- * Allow enabling thread mode only on empty cgroups to avoid
- * implicit migrations and recursive operations.
- */
- if (cgroup_has_tasks(cgrp) || css_has_online_children(&cgrp->self))
- return -EBUSY;
-
- /*
* The following shouldn't cause actual migrations and should
* always succeed.
*/