# Re: \[PATCH 1/1\] powerpc/smp: Set numa node before updating mask

- From: Nathan Lynch \<hidden\>
- Date: 2021-04-13 12:25:58 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/04/9522084
- Thread: https://ratatoskr.run/linuxppc-dev/2021/04/9521874/t.md

```text
Srikar Dronamraju [ref] writes:
>
> Some of the per-CPU masks use cpu_cpu_mask as a filter to limit the search
> for related CPUs. On a dlpar add of a CPU, update cpu_cpu_mask before
> updating the per-CPU masks. This will ensure the cpu_cpu_mask is updated
> correctly before its used in setting the masks. Setting the numa_node will
> ensure that when cpu_cpu_mask() gets called, the correct node number is
> used. This code movement helped fix the above call trace.
>
> Reported-by: Geetika Moolchandani <redacted>
> Signed-off-by: Srikar Dronamraju <redacted>

Reviewed-by: Nathan Lynch <redacted>

Thanks.
```
