Re: [PATCH v2] powerpc/numa: Fix percpu allocations to be NUMA aware

2017-06-06 Thread Nicholas Piggin
On Tue, 6 Jun 2017 20:23:57 +1000 Michael Ellerman wrote: > In commit 8c272261194d ("powerpc/numa: Enable USE_PERCPU_NUMA_NODE_ID"), we > switched to the generic implementation of cpu_to_node(), which uses a percpu > variable to hold the NUMA node for each CPU. > > Unfortunately we neglected to

[PATCH v2] powerpc/numa: Fix percpu allocations to be NUMA aware

2017-06-06 Thread Michael Ellerman
In commit 8c272261194d ("powerpc/numa: Enable USE_PERCPU_NUMA_NODE_ID"), we switched to the generic implementation of cpu_to_node(), which uses a percpu variable to hold the NUMA node for each CPU. Unfortunately we neglected to notice that we use cpu_to_node() in the allocation of our percpu areas