cgroup/cpuset: Inherit parent's load balance state in v2
authorWaiman Long <longman@redhat.com>
Tue, 27 Jun 2023 14:35:00 +0000 (10:35 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 10 Jul 2023 20:59:27 +0000 (10:59 -1000)
commitc8c926200c55454101f072a4b16c9ff5b8c9e56f
tree226839aafe1d519db1140ef22ec6cadc01c190ac
parent868f87b3759bb7bedb081fdd40ef8d143c003fa6
cgroup/cpuset: Inherit parent's load balance state in v2

Since commit f28e22441f35 ("cgroup/cpuset: Add a new isolated
cpus.partition type"), the CS_SCHED_LOAD_BALANCE bit of a v2 cpuset
can be on or off. The child cpusets of a partition root must have the
same setting as its parent or it may screw up the rebuilding of sched
domains. Fix this problem by making sure the a child v2 cpuset will
follows its parent cpuset load balance state unless the child cpuset
is a new partition root itself.

Fixes: f28e22441f35 ("cgroup/cpuset: Add a new isolated cpus.partition type")
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c