From: Ridong Chen <ridong.chen@linux.dev>
To: "Waiman Long" <longman@redhat.com>, "Tejun Heo" <tj@kernel.org>,
"Johannes Weiner" <hannes@cmpxchg.org>,
"Michal Koutný" <mkoutny@suse.com>,
"Shuah Khan" <shuah@kernel.org>
Cc: Ridong Chen <ridong.chen@linux.dev>,
cgroups@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Guopeng Zhang <zhangguopeng@kylinos.cn>,
Ridong Chen <chenridong@xiaomi.com>
Subject: [PATCH for-7.4-fixes v4 0/2] cpuset: preparatory fixes and cleanups for partition rework
Date: Thu, 12 Nov 2026 11:19:29 +0800 [thread overview]
Message-ID: <20261112031931.2815548-1-ridong.chen@linux.dev> (raw)
From: Ridong Chen <chenridong@xiaomi.com>
This series is part of the cpuset local partition rework [1], which I
started while at Huawei and am now continuing at Xiaomi.
Patches 1 and 2 of v3 have been merged into cgroup/for-7.4-fixes. This
version only has the remaining patches 3 and 4 of v3, rebased onto
cgroup/for-7.4-fixes.
Both patches include a bug fix besides the restructuring (Waiman):
1) settle the isolation state of CPUs given back to the parent in
partition_xcpus_del(). This fixes the isolated CPU leak reported by
Guopeng [2], where an isolated partition is invalidated after its
parent root partition has become invalid and its CPUs are left in
isolated_cpus.
2) generalize validate_partition() so it can be used for both local
and remote partitions. This fixes a false PERR_NOCPUS error when
expanding a remote partition, where the no CPU left for tasks check
is done against the cgroup parent instead of top_cpuset.
Patch 2 adds a test case to test_cpuset_prs.sh for the bug it fixes.
test_cpuset_prs.sh passes with this series applied.
[1] https://lore.kernel.org/all/20261101114206.2434398-1-ridong.chen@linux.dev/
[2] https://lore.kernel.org/all/20261105130344.664336-4-guopeng.zhang@linux.dev/
Changes in v4:
- Drop patches 1 and 2, which have been merged.
- Rebase onto cgroup/for-7.4-fixes, which includes commit 56681bc448a8
("cgroup/cpuset: Correctly set isolated_cpus when switching partition state").
- Patch 1: describe the isolated CPU leak in the commit message, add
Fixes, Reported-by and Closes tags (Waiman, Guopeng).
- Patch 2: describe the remote partition expansion fix in the commit
message, add a Fixes tag and a test case for it (Waiman).
- Link to v3: https://lore.kernel.org/all/20261107120100.3587595-1-ridong.chen@linux.dev/
Ridong Chen (2):
cpuset: settle isolation state when CPUs are given back to parent
cpuset: generalize the validate_partition() interface
kernel/cgroup/cpuset.c | 217 +++++++-----------
.../selftests/cgroup/test_cpuset_prs.sh | 5 +
2 files changed, 83 insertions(+), 139 deletions(-)
base-commit: 56681bc448a80bb2473026b41c44c133766bc38d
--
2.34.1
next reply other threads:[~2026-11-12 3:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 3:19 Ridong Chen [this message]
2026-11-12 3:19 ` [PATCH for-7.4-fixes v4 1/2] cpuset: settle isolation state when CPUs are given back to parent Ridong Chen
2026-11-12 8:33 ` Guopeng Zhang
2026-11-12 19:14 ` Waiman Long
2026-11-12 3:19 ` [PATCH for-7.4-fixes v4 2/2] cpuset: generalize the validate_partition() interface Ridong Chen
2026-11-12 8:51 ` Guopeng Zhang
2026-11-12 19:15 ` Waiman Long
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261112031931.2815548-1-ridong.chen@linux.dev \
--to=ridong.chen@linux.dev \
--cc=cgroups@vger.kernel.org \
--cc=chenridong@xiaomi.com \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mkoutny@suse.com \
--cc=shuah@kernel.org \
--cc=tj@kernel.org \
--cc=zhangguopeng@kylinos.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.