Re: [PATCH] Do not use cpu_to_node() to find an offlined cpu's node.

From: Peter Zijlstra
Date: Fri Oct 19 2012 - 07:18:14 EST


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.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/