Re: [patch] slab: add memory hotplug support

From: David Rientjes
Date: Tue Mar 02 2010 - 16:03:16 EST


On Tue, 2 Mar 2010, Christoph Lameter wrote:

>
> Not sure how this would sync with slab use during node bootstrap and
> shutdown. Kame-san?
>

All the nodelist allocation and initialization is done during
MEM_GOING_ONLINE, so there should be no use of them until that
notification cycle is done and it has graduated to MEM_ONLINE: if there
are, there're even bigger problems because zonelist haven't even been
built for that pgdat yet. I can only speculate, but since Andi's
patchset did all this during MEM_ONLINE, where the bit is already set in
node_states[N_HIGH_MEMORY] and is passable to kmalloc_node(), this is
probably why additional hacks had to be added elsewhere.

Other than that, concurrent kmem_cache_create() is protected by
cache_chain_mutex.
--
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/