cgroup/cpuset: Check partition conflict with housekeeping setup
authorWaiman Long <longman@redhat.com>
Tue, 5 Sep 2023 13:32:41 +0000 (09:32 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 18 Sep 2023 20:32:31 +0000 (10:32 -1000)
commit4a74e418881f26cdeae1011453acd66cedc8ad2c
tree5125ea7d7b7e127074ef8b2dba1070196f958462
parent181c8e091aae11b0b7efba49b34adfe3c89ce648
cgroup/cpuset: Check partition conflict with housekeeping setup

A user can pre-configure certain CPUs in an isolated state at boot time
with the "isolcpus" kernel boot command line option. Those CPUs will
not be in the housekeeping_cpumask(HK_TYPE_DOMAIN) and so will not
be in any sched domains. This may conflict with the partition setup
at runtime. Those boot time isolated CPUs should only be used in an
isolated partition.

This patch adds the necessary check and disallows partition setup if the
check fails.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c