Skip to content
Commit d068eebb authored by Michal Koutný's avatar Michal Koutný Committed by Tejun Heo
Browse files

cgroup/cpuset: Make child cpusets restrict parents on v1 hierarchy

The commit 1f1562fc ("cgroup/cpuset: Don't let child cpusets
restrict parent in default hierarchy") inteded to relax the check only
on the default hierarchy (or v2 mode) but it dropped the check in v1
too.

This patch returns and separates the legacy-only validations so that
they can be considered only in the v1 mode, which should enforce the old
constraints for the sake of compatibility.

Fixes: 1f1562fc

 ("cgroup/cpuset: Don't let child cpusets restrict parent in default hierarchy")
Suggested-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarMichal Koutný <mkoutny@suse.com>
Reviewed-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent daadb3bd
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