Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

slab: partially revert list3 changes

Partial revert the changes made by 04231b3002ac53f8a64a7bd142fde3fa4b6808c6
to the kmem_list3 management. On a machine with a memoryless node, this
BUG_ON was triggering

static void *____cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid)
{
struct list_head *entry;
struct slab *slabp;
struct kmem_list3 *l3;
void *obj;
int x;

l3 = cachep->nodelists[nodeid];
BUG_ON(!l3);

Signed-off-by: Mel Gorman <mel@csn.ul.ie>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Christoph Lameter <clameter@sgi.com>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Cc: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Mel Gorman and committed by
Linus Torvalds
9c09a95c c5c99429

+3 -3
+3 -3
mm/slab.c
··· 1590 1590 /* Replace the static kmem_list3 structures for the boot cpu */ 1591 1591 init_list(&cache_cache, &initkmem_list3[CACHE_CACHE], node); 1592 1592 1593 - for_each_node_state(nid, N_NORMAL_MEMORY) { 1593 + for_each_online_node(nid) { 1594 1594 init_list(malloc_sizes[INDEX_AC].cs_cachep, 1595 1595 &initkmem_list3[SIZE_AC + nid], nid); 1596 1596 ··· 1968 1968 { 1969 1969 int node; 1970 1970 1971 - for_each_node_state(node, N_NORMAL_MEMORY) { 1971 + for_each_online_node(node) { 1972 1972 cachep->nodelists[node] = &initkmem_list3[index + node]; 1973 1973 cachep->nodelists[node]->next_reap = jiffies + 1974 1974 REAPTIMEOUT_LIST3 + ··· 3815 3815 struct array_cache *new_shared; 3816 3816 struct array_cache **new_alien = NULL; 3817 3817 3818 - for_each_node_state(node, N_NORMAL_MEMORY) { 3818 + for_each_online_node(node) { 3819 3819 3820 3820 if (use_alien_caches) { 3821 3821 new_alien = alloc_alien_cache(node, cachep->limit);