On Thu, 25 Feb 2010 12:30:26 -0600 (CST) Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx> wrote: > On Thu, 25 Feb 2010, David Rientjes wrote: > > > I don't see how memory hotadd with a new node being onlined could have > > worked fine before since slab lacked any memory hotplug notifier until > > Andi just added it. > > AFAICR The cpu notifier took on that role in the past. > > If what you say is true then memory hotplug has never worked before. > Kamesan? > In this code, int node = numa_node_id(); node is got by its CPU. At node hotplug, following order should be kept. Add: memory -> cpu Remove: cpu -> memory cpus must be onlined after memory. At least, we online cpus only after memory. Then, we(our heavy test on RHEL5) never see this kind of race. I'm sorry if my answer misses your point. Thanks, -Kame > -- > 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/ > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>