Message ID | alpine.DEB.2.00.1111221144580.28197@router.home |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
Index: linux-2.6/mm/slub.c =================================================================== --- linux-2.6.orig/mm/slub.c 2011-11-22 11:57:21.000000000 -0600 +++ linux-2.6/mm/slub.c 2011-11-22 11:57:55.000000000 -0600 @@ -3027,7 +3027,9 @@ static int kmem_cache_open(struct kmem_c * per node list when we run out of per cpu objects. We only fetch 50% * to keep some capacity around for frees. */ - if (s->size >= PAGE_SIZE) + if (kmem_cache_debug(s)) + s->cpu_partial = 0; + else if (s->size >= PAGE_SIZE) s->cpu_partial = 2; else if (s->size >= 1024) s->cpu_partial = 6;