Messages in this thread Patch in this message | | | Date | Fri, 19 Sep 2008 12:00:53 -0500 | From | Christoph Lameter <> | Subject | Re: [patch 3/4] cpu alloc: The allocator |
| |
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@linux-foundation.org>
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
| |