Re: [patch 3/4] cpu alloc: The allocator
From: Christoph Lameter
Date: Fri Sep 19 2008 - 13:02:06 EST
Completely wrong. We need this patch that Eric suggested:
Subject: cpu_alloc: Allow alignment < UNIT_SIZE
Limit the minimum alignment to UNIT_SIZE.
Signed-off-by: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx>
Index: linux-2.6/mm/cpu_alloc.c
===================================================================
--- linux-2.6.orig/mm/cpu_alloc.c 2008-09-19 11:47:30.000000000 -0500
+++ linux-2.6/mm/cpu_alloc.c 2008-09-19 11:56:47.000000000 -0500
@@ -86,6 +86,9 @@
WARN_ON(align > PAGE_SIZE);
+ if (align < UNIT_SIZE)
+ align = UNIT_SIZE;
+
spin_lock_irqsave(&cpu_alloc_map_lock, flags);
first = 1
--
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/