]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup/cpuset: Make child cpusets restrict parents on v1 hierarchy
authorMichal Koutný <mkoutny@suse.com>
Fri, 17 Dec 2021 15:48:54 +0000 (16:48 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 12 Jan 2022 21:24:45 +0000 (11:24 -1000)
commitc21a3ecca3f8f600a96af6c90bbef19b30eb76e7
tree2aa0efc5e3f19af01134f2af8becab91a08f8cc5
parent0b4489fef0c356048c709b9f080e303eea134420
cgroup/cpuset: Make child cpusets restrict parents on v1 hierarchy

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