]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cgroup/cpuset: Fail if isolated and nohz_full don't leave any housekeeping
authorWaiman Long <longman@redhat.com>
Wed, 5 Nov 2025 04:38:45 +0000 (23:38 -0500)
committerTejun Heo <tj@kernel.org>
Wed, 5 Nov 2025 17:00:33 +0000 (07:00 -1000)
commit103b08709e8a59876980a8edddf4e68f3a23e34e
treeeeee3f560557e25e65844a4678fe383bab876504
parent55939cf28a48dad27d6906e57d3b45905bb0d001
cgroup/cpuset: Fail if isolated and nohz_full don't leave any housekeeping

Currently the user can set up isolated cpus via cpuset and nohz_full in
such a way that leaves no housekeeping CPU (i.e. no CPU that is neither
domain isolated nor nohz full). This can be a problem for other
subsystems (e.g. the timer wheel imgration).

Prevent this configuration by blocking any assignation that would cause
the union of domain isolated cpus and nohz_full to covers all CPUs.

[longman: Remove isolated_cpus_should_update() and rewrite the checking
 in update_prstate() and update_parent_effective_cpumask()]

Originally-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c