From: Tejun Heo <tj@kernel.org>
To: Waiman Long <longman@redhat.com>
Cc: "Johannes Weiner" <hannes@cmpxchg.org>,
"Michal Koutný" <mkoutny@suse.com>,
cgroups@vger.kernel.org, linux-kernel@vger.kernel.org,
"Chen Ridong" <chenridong@huawei.com>
Subject: Re: [PATCH 1/2] cgroup/cpuset: Don't track # of local child partitions
Date: Mon, 20 Oct 2025 07:02:25 -1000 [thread overview]
Message-ID: <aPZrIV1Hhj9pIFqg@slm.duckdns.org> (raw)
In-Reply-To: <20251020023207.177809-2-longman@redhat.com>
On Sun, Oct 19, 2025 at 10:32:06PM -0400, Waiman Long wrote:
> The cpuset structure has a nr_subparts field which tracks the number
> of child local partitions underneath a particular cpuset. Right now,
> nr_subparts is only used in partition_is_populated() to avoid iteration
> of child cpusets if the condition is right. So by always performing the
> child iteration, we can avoid tracking the number of child partitions
> and simplify the code a bit.
>
> Signed-off-by: Waiman Long <longman@redhat.com>
Applied to cgroup/for-6.19.
Thanks.
--
tejun
next prev parent reply other threads:[~2025-10-20 17:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-20 2:32 [PATCH 0/2] cgroup/cpuset: Miscellaneous cleanup Waiman Long
2025-10-20 2:32 ` [PATCH 1/2] cgroup/cpuset: Don't track # of local child partitions Waiman Long
2025-10-20 6:57 ` Chen Ridong
2025-10-20 17:02 ` Tejun Heo
2025-10-21 2:06 ` Chen Ridong
2025-10-20 17:02 ` Tejun Heo [this message]
2025-10-20 2:32 ` [PATCH 2/2] cgroup/cpuset: Change callback_lock to raw_spinlock_t Waiman Long
2025-10-20 17:00 ` Tejun Heo
2025-10-20 19:25 ` 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=aPZrIV1Hhj9pIFqg@slm.duckdns.org \
--to=tj@kernel.org \
--cc=cgroups@vger.kernel.org \
--cc=chenridong@huawei.com \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=longman@redhat.com \
--cc=mkoutny@suse.com \
/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®