[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f281aa93-a0cd-4767-8673-99008e0b1412@redhat.com>
Date: Mon, 15 Sep 2025 14:44:20 -0400
From: Waiman Long <llong@...hat.com>
To: Chen Ridong <chenridong@...weicloud.com>, tj@...nel.org,
hannes@...xchg.org, mkoutny@...e.com
Cc: cgroups@...r.kernel.org, linux-kernel@...r.kernel.org,
lujialin4@...wei.com, chenridong@...wei.com
Subject: Re: [PATCH -next RFC -v2 02/11] cpuset: remove unused assignment to
trialcs->partition_root_state
On 9/8/25 11:32 PM, Chen Ridong wrote:
> From: Chen Ridong <chenridong@...wei.com>
>
> The trialcs->partition_root_state field is not used during the
> configuration of 'cpuset.cpus' or 'cpuset.cpus.exclusive'. Therefore,
> the assignment of values to this field can be safely removed.
>
> Signed-off-by: Chen Ridong <chenridong@...wei.com>
> ---
> kernel/cgroup/cpuset.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
> index 7e1bc1e1bde1..d21c448a35e1 100644
> --- a/kernel/cgroup/cpuset.c
> +++ b/kernel/cgroup/cpuset.c
> @@ -2362,7 +2362,6 @@ static int update_cpumask(struct cpuset *cs, struct cpuset *trialcs,
> * trialcs->effective_xcpus is used as a temporary cpumask
> * for checking validity of the partition root.
> */
> - trialcs->partition_root_state = PRS_MEMBER;
> if (!cpumask_empty(trialcs->exclusive_cpus) || is_partition_valid(cs))
> compute_effective_exclusive_cpumask(trialcs, NULL, cs);
> }
> @@ -2496,7 +2495,6 @@ static int update_exclusive_cpumask(struct cpuset *cs, struct cpuset *trialcs,
> return 0;
>
> if (*buf) {
> - trialcs->partition_root_state = PRS_MEMBER;
> /*
> * Reject the change if there is exclusive CPUs conflict with
> * the siblings.
Reviewed-by: Waiman Long <longman@...hat.com>
Powered by blists - more mailing lists