[patch -mm 5/7] x86_64: disable alien cache for fake numa

From: David Rientjes
Date: Thu Mar 01 2007 - 12:14:10 EST


Disables using alien cache for slab when NUMA emulation is being used.

Cc: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Paul Menage <menage@xxxxxxxxxx>
Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
---
arch/x86_64/mm/numa.c | 2 ++
mm/slab.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/x86_64/mm/numa.c b/arch/x86_64/mm/numa.c
--- a/arch/x86_64/mm/numa.c
+++ b/arch/x86_64/mm/numa.c
@@ -280,6 +280,7 @@ void __init numa_init_array(void)
PAGE_SHIFT)

static struct bootnode physical_node_map[MAX_NUMNODES];
+extern int use_alien_caches;
char *cmdline __initdata;
int numa_emu;

@@ -512,6 +513,7 @@ out:
nodes[i].end >> PAGE_SHIFT);
setup_node_bootmem(i, nodes[i].start, nodes[i].end);
}
+ use_alien_caches = 0;
numa_init_array();
return 0;
}
diff --git a/mm/slab.c b/mm/slab.c
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -889,7 +889,7 @@ static void __slab_error(const char *function, struct kmem_cache *cachep,
* line
*/

-static int use_alien_caches __read_mostly = 1;
+int use_alien_caches __read_mostly = 1;
static int __init noaliencache_setup(char *s)
{
use_alien_caches = 0;
-
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/