Linux cgroups development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] cgroup/cpuset: Fix sibling CPU exclusion in partcmd_update
@ 2026-05-27  6:43 Sun Shaojie
  2026-05-27  6:43 ` [PATCH v2 1/2] cgroup/cpuset: Use effective_xcpus in partcmd_update add/del mask calculation Sun Shaojie
  2026-05-27 19:05 ` [PATCH v2 0/2] cgroup/cpuset: Fix sibling CPU exclusion in partcmd_update Tejun Heo
  0 siblings, 2 replies; 6+ messages in thread
From: Sun Shaojie @ 2026-05-27  6:43 UTC (permalink / raw)
  To: Waiman Long, Chen Ridong, Tejun Heo, Johannes Weiner,
	Michal Koutný
  Cc: cgroups, linux-kernel, zhangguopeng, Sun Shaojie

Fix the partcmd_update path to use effective_xcpus instead of user_xcpus
for add/del mask calculation, and add test cases to verify the fix.

Changes in v2:
  - Updated comments to match the code change (suggested by Zhang Guopeng)
  - Added test cases for the fix

Sun Shaojie (2):
  cgroup/cpuset: Use effective_xcpus in partcmd_update add/del mask
    calculation
  cgroup/cpuset: Add test cases for sibling CPU exclusion on partition
    update

 kernel/cgroup/cpuset.c                            | 13 +++++++------
 tools/testing/selftests/cgroup/test_cpuset_prs.sh | 10 ++++++++++
 2 files changed, 17 insertions(+), 6 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-27 19:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-27  6:43 [PATCH v2 0/2] cgroup/cpuset: Fix sibling CPU exclusion in partcmd_update Sun Shaojie
2026-05-27  6:43 ` [PATCH v2 1/2] cgroup/cpuset: Use effective_xcpus in partcmd_update add/del mask calculation Sun Shaojie
2026-05-27  7:05   ` [PATCH v2 2/2] cgroup/cpuset: Add test cases for sibling CPU exclusion on partition update Sun Shaojie
2026-05-27 18:08     ` Waiman Long
2026-05-27 18:01   ` [PATCH v2 1/2] cgroup/cpuset: Use effective_xcpus in partcmd_update add/del mask calculation Waiman Long
2026-05-27 19:05 ` [PATCH v2 0/2] cgroup/cpuset: Fix sibling CPU exclusion in partcmd_update Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox