Unverified Commit 16ccd6eb by Christian Brauner Committed by Stéphane Graber

cgroups: ignore legacy limits on pure cgroup2 systems

parent ec84b86e
...@@ -2709,6 +2709,9 @@ __cgfsng_ops static bool cgfsng_setup_limits_legacy(struct cgroup_ops *ops, ...@@ -2709,6 +2709,9 @@ __cgfsng_ops static bool cgfsng_setup_limits_legacy(struct cgroup_ops *ops,
if (!ops->hierarchies) if (!ops->hierarchies)
return ret_set_errno(false, EINVAL); return ret_set_errno(false, EINVAL);
if (!pure_unified_layout(ops))
return log_warn_errno(true, EINVAL, "Ignoring legacy cgroup limits on pure cgroup2 system");
sorted_cgroup_settings = sort_cgroup_settings(cgroup_settings); sorted_cgroup_settings = sort_cgroup_settings(cgroup_settings);
if (!sorted_cgroup_settings) if (!sorted_cgroup_settings)
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment