Re: [PATCH RFC v2 13/22] cpuset: introduce local_partition_update()

From: Chen Ridong

Date: Thu Nov 13 2025 - 01:33:52 EST




On 2025/11/13 10:06, Waiman Long wrote:
> On 10/25/25 2:48 AM, Chen Ridong wrote:
>> From: Chen Ridong <chenridong@xxxxxxxxxx>
>>
>> The local_partition_update() function replaces the command partcmd_update
>> previously handled within update_parent_effective_cpumask(). The update
>> logic follows a state-based approach:
>>
>> 1. Validation check: First verify if the local partition is currently valid
>> 2. Invalidation handling: If the partition is invalid, trigger invalidation
>> 3. State transition: If an invalid partition has no errors, transition to
>>     valid
>> 4. cpumasks updates: For local partition that only cpu maks changes, use
> "cpumask"

Thanks, will update.

>>     partition_update() to handle partition change.
>>
>> Signed-off-by: Chen Ridong <chenridong@xxxxxxxxxx>
>> ---
>>   kernel/cgroup/cpuset.c | 153 +++++++++++++++++++++++++++++++++++++++--
>>   1 file changed, 148 insertions(+), 5 deletions(-)
>>
>> diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
>> index 73a43ab58f72..49df38237c1d 100644
>> --- a/kernel/cgroup/cpuset.c
>> +++ b/kernel/cgroup/cpuset.c
>> @@ -1822,6 +1822,59 @@ static void remote_cpus_update(struct cpuset *cs, struct cpumask *xcpus,
>>       remote_partition_disable(cs, tmp);
>>   }
>>   +static bool is_user_cpus_exclusive(struct cpuset *cs)
>
> Should we name this "is_user_xcpus_exclusive"?
>
> Cheers,
> Longman
>

Thanks, will update.

--
Best regards,
Ridong