Re: [PATCH] Do not use cpu_to_node() to find an offlined cpu's node.
Peter Zijlstra <[email protected]> Fri, 19 Oct 2012 13:18:04 +0200
| Newsgroups | org.kernel.vger.linux-numa,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <1350645484.30157.3.camel@twins> |
On Wed, 2012-10-17 at 20:29 -0700, David Rientjes wrote: > > Ok, thanks for the update. I agree that we should be clearing the mapping > at node hot-remove since any cpu that would subsequently get onlined and > assume one of the previous cpu's ids is not guaranteed to have the same > affinity. Would this mean we have to remap (and memcpy) per-cpu memory on node-plug? > I'm just really hoping that we don't touch the acpi code and that we can > remove both cpu_hotplug-unmap-cpu2node-when-the-cpu-is-hotremoved.patch > and cpu_hotplug-unmap-cpu2node-when-the-cpu-is-hotremoved-fix.patch from > -mm. Yeah, none of this should be anywhere near ACPI, its got nothing to do with ACPI. Furthermore it should be be same across all archs, not just be weird and wonderful for x86.