This reverts commit
bb291add5db87fe36a82a18c6eb6aaf64dc07694.
cgroup v2, has no internal process constraint, where the process runs
only on the leaf node of the cgroup hierarchy and no controllers should
be enabled on the leaf cgroup node too, so that they don't compete with
the parent's internal process. This patch broke this rule by enabling
the controller on the leaf node by default. Let's revert to the original
approach of not enabling the controller on the leaf cgroup node.
Signed-by-off: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
(cherry picked from commit
9479fedff122ea44c887efafde2aaa3a51f0c623)
goto err;
if (controller) {
- if (version == CGROUP_V2) {
- error = cgroupv2_subtree_control(base, controller->name, true);
- if (error)
- goto err;
- }
-
error = cgroup_set_values_recursive(base, controller, false);
if (error)
goto err;