summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2026-11-09 21:24:00 -0500
committerTejun Heo <tj@kernel.org>2026-11-10 09:21:40 -1000
commit56681bc448a80bb2473026b41c44c133766bc38d (patch)
tree89f37e8b0e8ae39d6c24378c702ac25c42a885e5 /scripts/Makefile.thinlto
parenta25cc4c75fdd8921f160bc3950665889eba7374b (diff)
downloadlinux-next-56681bc448a80bb2473026b41c44c133766bc38d.tar.gz
linux-next-56681bc448a80bb2473026b41c44c133766bc38d.zip
cgroup/cpuset: Correctly set isolated_cpus when switching partition state
When update_prstate() is called to switch the partition state from root to isolated or vice versa, the whole effective_xcpus is passed to isolated_cpus_update(). However, if there are child partitions present, some of the effective_xcpus are dedicated to those child partitions and their partition states will remain the same or get invalidated in the case of child root partition with isolated parent in the latter update_cpumasks_hier() call. In the latter case, their exclusive CPUs will be returned to their parent. Therefore isolated_cpus may be set incorrectly with child partitions underneath. Fix that by excluding their exclusive CPUs in computing the correct cpumask of exclusive CPUs used by that partition alone. Add new test cases into test_cpuset_prs.sh to test for such cases. Fixes: 11e5f407b64a ("cgroup/cpuset: Keep track of CPUs in isolated partitions") Cc: stable@vger.kernel.org # v6.8+ Signed-off-by: Waiman Long <longman@redhat.com> Reviewed-by: Ridong Chen <ridong.chen@linux.dev> Tested-by: Ridong Chen <ridong.chen@linux.dev> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions