From: Guopeng Zhang <guopeng.zhang@linux.dev>
To: longman@redhat.com, tj@kernel.org, ridong.chen@linux.dev
Cc: guopeng.zhang@linux.dev, hannes@cmpxchg.org, mkoutny@suse.com,
shuah@kernel.org, cgroups@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
Guopeng Zhang <zhangguopeng@kylinos.cn>
Subject: [PATCH v2 0/3] cgroup/cpuset: Keep the top scheduling domain populated
Date: Thu, 5 Nov 2026 21:03:41 +0800 [thread overview]
Message-ID: <20261105130344.664336-1-guopeng.zhang@linux.dev> (raw)
From: Guopeng Zhang <zhangguopeng@kylinos.cn>
Boot-isolated CPUs stay in top_cpuset.effective_cpus, but are excluded
from its scheduling domain. Allocating all boot domain housekeeping CPUs
to partitions can therefore leave the top scheduling domain empty even
though effective_cpus is nonempty, leading to warnings and an OOPS in
build_perf_domains(). CPU hotplug can reach the same state.
The patches are ordered as follows:
1. Check local and remote partition creation and CPU mask updates.
2. Check the hotplug paths without crediting CPUs that remain allocated
to child partitions, and invalidate local or remote partitions as
needed to restore an active boot domain housekeeping CPU.
3. Release an isolated child's CPUs when its parent is already invalid.
Changes since v1:
Rework the fix following Ridong's suggestion and add test cases.
Add patch 2 for CPU hotplug and patch 3 for isolated CPU cleanup
when the parent partition becomes invalid.
v1: https://lore.kernel.org/all/20261104071600.474587-1-guopeng.zhang@linux.dev/
Guopeng Zhang (3):
cgroup/cpuset: Reject updates that empty the top sched domain
cgroup/cpuset: Keep the top sched domain non-empty on CPU hotplug
cgroup/cpuset: Release isolated CPUs when the parent is invalid
kernel/cgroup/cpuset.c | 59 ++++++++++++++++++-
.../selftests/cgroup/test_cpuset_prs.sh | 55 +++++++++++++++++
2 files changed, 111 insertions(+), 3 deletions(-)
--
2.43.0
next reply other threads:[~2026-11-05 13:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 13:03 Guopeng Zhang [this message]
2026-11-05 13:03 ` [PATCH v2 1/3] cgroup/cpuset: Reject updates that empty the top sched domain Guopeng Zhang
2026-11-05 13:03 ` [PATCH v2 2/3] cgroup/cpuset: Keep the top sched domain non-empty on CPU hotplug Guopeng Zhang
2026-11-05 13:03 ` [PATCH v2 3/3] cgroup/cpuset: Release isolated CPUs when the parent is invalid Guopeng Zhang
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=20261105130344.664336-1-guopeng.zhang@linux.dev \
--to=guopeng.zhang@linux.dev \
--cc=cgroups@vger.kernel.org \
--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=ridong.chen@linux.dev \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®