mirror of
https://github.com/torvalds/linux.git
synced 2026-09-19 17:18:02 +02:00
When sibling CPU exclusion occurs, a partition's effective_xcpus may be
a subset of its user_xcpus. The partcmd_update path must use
effective_xcpus instead of user_xcpus when calculating CPUs to return
to or request from the parent.
Add two test cases to verify this behavior:
1) Narrowing cpuset.cpus to only the sibling-excluded CPUs should not
return CPUs to parent that the partition never actually owned.
2) Expanding cpuset.cpus after a sibling becomes a member should
correctly request the additional CPUs from parent.
Co-developed-by: Zhang Guopeng <zhangguopeng@kylinos.cn>
Signed-off-by: Zhang Guopeng <zhangguopeng@kylinos.cn>
Signed-off-by: Sun Shaojie <sunshaojie@kylinos.cn>
Reviewed-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
|
||
|---|---|---|
| .. | ||
| lib | ||
| .gitignore | ||
| config | ||
| Makefile | ||
| memcg_protection.m | ||
| test_core.c | ||
| test_cpu.c | ||
| test_cpuset_prs.sh | ||
| test_cpuset_v1_base.sh | ||
| test_cpuset_v1_hp.sh | ||
| test_cpuset.c | ||
| test_freezer.c | ||
| test_hugetlb_memcg.c | ||
| test_kill.c | ||
| test_kmem.c | ||
| test_memcontrol.c | ||
| test_pids.c | ||
| test_stress.sh | ||
| test_zswap.c | ||
| wait_inotify.c | ||
| with_stress.sh | ||