|
@@ -3028,7 +3028,9 @@ static int kmem_cache_open(struct kmem_cache *s,
|
|
* per node list when we run out of per cpu objects. We only fetch 50%
|
|
* per node list when we run out of per cpu objects. We only fetch 50%
|
|
* to keep some capacity around for frees.
|
|
* 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;
|
|
s->cpu_partial = 2;
|
|
else if (s->size >= 1024)
|
|
else if (s->size >= 1024)
|
|
s->cpu_partial = 6;
|
|
s->cpu_partial = 6;
|