summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2026-10-25 17:44:41 -0400
committerTejun Heo <tj@kernel.org>2026-10-26 07:44:14 -1000
commitd3873b45bea4cc99d135922cdc89841164f33855 (patch)
treeb4df09ede4a3cf67e3cde9e1824b610c9c2e0d86 /include/linux
parent69a75e4f377629928bd173747b864694c2af4e1c (diff)
cgroup/cpuset: Fix incorrect effective_cpus bug in update_cpumasks_hier()
With the introduction of cpuset.cpus.exclusive, the computation of effective_cpus differs depending on if a cpuset is a valid partition root or not. In update_cpumasks_hier(), effective_cpus is computed early to check if the current subtree can be skipped. Later on update_parent_effective_cpumask() may be called which can change the partition state from valid to invalid or vice versa. If the partition state changes, the previously computed effective_cpus may no longer be valid. Fix that by recomputing effective_cpus again when that happens. Also add a new test case into test_cpuset_prs.sh to verify this change. Fixes: e2ffe502ba45 ("cgroup/cpuset: Add cpuset.cpus.exclusive for v2") Signed-off-by: Waiman Long <longman@redhat.com> Reviewed-by: Guopeng Zhang <zhangguopeng@kylinos.cn> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions