cgroup: mark subsystems with broken hierarchy support and whine if cgroups are nested...
[deliverable/linux.git] / net / core / netprio_cgroup.c
index c75e3f9d060f8e3d086b747255ab65c8104f7dde..34f3615b30ca81d49161f902e8bad47bc07770a6 100644 (file)
@@ -330,7 +330,17 @@ struct cgroup_subsys net_prio_subsys = {
        .subsys_id      = net_prio_subsys_id,
 #endif
        .base_cftypes   = ss_files,
-       .module         = THIS_MODULE
+       .module         = THIS_MODULE,
+
+       /*
+        * net_prio has artificial limit on the number of cgroups and
+        * disallows nesting making it impossible to co-mount it with other
+        * hierarchical subsystems.  Remove the artificially low PRIOIDX_SZ
+        * limit and properly nest configuration such that children follow
+        * their parents' configurations by default and are allowed to
+        * override and remove the following.
+        */
+       .broken_hierarchy = true,
 };
 
 static int netprio_device_event(struct notifier_block *unused,
This page took 0.027204 seconds and 5 git commands to generate.