The patch titled Memoryless Node: Slab support has been added to the -mm tree. Its filename is memoryless-node-slab-support.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Memoryless Node: Slab support From: Lee Schermerhorn <lee.schermerhorn@xxxxxx> Slab should not allocate control structures for nodes without memory. This may seem to work right now but its unreliable since not all allocations can fall back due to the use of GFP_THISNODE. Switching a few for_each_online_node's to for_each_memory_node will allow us to only allocate for nodes that actually have memory. Signed-off-by: Christoph Lameter <clameter@xxxxxxx> Acked-by: Nishanth Aravamudan <nacc@xxxxxxxxxx> Acked-by: Lee Schermerhorn <lee.schermerhorn@xxxxxx> Acked-by: Bob Picco <bob.picco@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/slab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff -puN mm/slab.c~memoryless-node-slab-support mm/slab.c --- a/mm/slab.c~memoryless-node-slab-support +++ a/mm/slab.c @@ -1565,7 +1565,7 @@ void __init kmem_cache_init(void) /* Replace the static kmem_list3 structures for the boot cpu */ init_list(&cache_cache, &initkmem_list3[CACHE_CACHE], node); - for_each_online_node(nid) { + for_each_node_state(nid, N_MEMORY) { init_list(malloc_sizes[INDEX_AC].cs_cachep, &initkmem_list3[SIZE_AC + nid], nid); @@ -1943,7 +1943,7 @@ static void __init set_up_list3s(struct { int node; - for_each_online_node(node) { + for_each_node_state(node, N_MEMORY) { cachep->nodelists[node] = &initkmem_list3[index + node]; cachep->nodelists[node]->next_reap = jiffies + REAPTIMEOUT_LIST3 + @@ -2074,7 +2074,7 @@ static int __init_refok setup_cpu_cache( g_cpucache_up = PARTIAL_L3; } else { int node; - for_each_online_node(node) { + for_each_node_state(node, N_MEMORY) { cachep->nodelists[node] = kmalloc_node(sizeof(struct kmem_list3), GFP_KERNEL, node); @@ -3784,7 +3784,7 @@ static int alloc_kmemlist(struct kmem_ca struct array_cache *new_shared; struct array_cache **new_alien = NULL; - for_each_online_node(node) { + for_each_node_state(node, N_MEMORY) { if (use_alien_caches) { new_alien = alloc_alien_cache(node, cachep->limit); _ Patches currently in -mm which might be from lee.schermerhorn@xxxxxx are numa-generic-management-of-nodemasks-for-various-purposes.patch memoryless-nodes-introduce-mask-of-nodes-with-memory.patch memoryless-nodes-fix-interleave-behavior.patch oom-use-the-n_memory-map-instead-of-constructing-one-on-the-fly.patch memoryless-nodes-no-need-for-kswapd.patch memoryless-node-slab-support.patch memoryless-nodes-slub-support.patch uncached-allocator-handle-memoryless-nodes.patch memoryless-node-allow-profiling-data-to-fall-back-to-other-nodes.patch memoryless-nodes-update-memory-policy-and-page-migration.patch add-n_cpu-node-state.patch memoryless-nodes-fix-gfp_thisnode-behavior.patch memoryless-nodes-use-node_memory_map-for-cpusets.patch memoryless-nodes-drop-one-memoryless-node-boot-warning.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html