Re: [PATCH 0/2] cgroup/cpuset: Fix partition updates using stale CPU masks

From: Guopeng Zhang

Date: Mon Oct 19 2026 - 22:55:18 EST


Hello,Longman

Could you take a look at this patch series when you have a chance?

Thanks,
Guopeng

在 2026/10/10 15:59, Guopeng Zhang 写道:
> From: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>
>
> These patches fix two cases where partition updates read stale configured
> CPU masks:
>
> 1. Shrinking cpuset.cpus of a remote partition can leave a removed CPU
> unavailable to the top cpuset.
> 2. Updating cpuset.cpus.exclusive can leave an invalid local partition
> unable to recover after the mask becomes valid.
>
> Move each configured mask update before partition_cpus_change().
>
> Guopeng Zhang (2):
> cgroup/cpuset: Fix cpuset.cpus update in a remote partition
> cgroup/cpuset: Fix invalid local partition recovery
>
> kernel/cgroup/cpuset.c | 11 +++++++++--
> 1 file changed, 9 insertions(+), 2 deletions(-)
>