Re: [PATCH v2] powerpc/mm/cxl: Add barrier when setting mm cpumask

2017-08-28 Thread Andrew Donnellan
On 28/08/17 18:35, Aneesh Kumar K.V wrote: We need to add memory barrier so that the page table walk doesn't happen before the cpumask is set and made visible to the other cpus. We need to use a sync here instead of lwsync because lwsync is not sufficient for store/load ordering. We also need to

[PATCH v2] powerpc/mm/cxl: Add barrier when setting mm cpumask

2017-08-28 Thread Aneesh Kumar K.V
We need to add memory barrier so that the page table walk doesn't happen before the cpumask is set and made visible to the other cpus. We need to use a sync here instead of lwsync because lwsync is not sufficient for store/load ordering. We also need to add an if (mm) check so that we do the right