diff options
| author | Waiman Long <longman@redhat.com> | 2026-10-30 15:06:59 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-11-01 21:48:52 -1000 |
| commit | 362212853cd09796c275669e9fc3a25f282bd688 (patch) | |
| tree | b602824d6caf0300d7bacfd884211295025ce47a /scripts/Makefile.thinlto | |
| parent | 518cec2def9992192291f5028edc077fb2e475e9 (diff) | |
| download | linux-next-362212853cd09796c275669e9fc3a25f282bd688.tar.gz linux-next-362212853cd09796c275669e9fc3a25f282bd688.zip | |
cgroup/cpuset: Fix incorrect CPU accounting with parent's effective_xcpus expansion
Commit ec0254b9eb49 ("cgroup/cpuset: Release invalid isolated CPUs with
a shrunk root partition parent") fixes incorrect isolated_cpus accounting
when contraction of a parent's effective_xcpus can cause a child partition
to lose isolated CPUs. Expansion of parent's effective_cpus can also allow
a child partition to gain more effective_xcpus. However, the current code
doesn't handle this case correctly leading to incorrect effective_cpus
and isolated_cpus accounting. Fix that by looking for this possible
expansion of effective_xcpus and perform the proper accounting action.
New test cases are added to test this effective_xcpus expansion scenarios.
Reported-by: Guopeng Zhang <guopeng.zhang@linux.dev>
Link: https://lore.kernel.org/lkml/20261027123837.100909-1-guopeng.zhang@linux.dev
Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Guopeng Zhang <zhangguopeng@kylinos.cn>
Tested-by: Guopeng Zhang <zhangguopeng@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
