--- a/mm/slab.c~mm-remove-useless-lines-in-enable_cpucache +++ a/mm/slab.c @@ -3900,8 +3900,6 @@ static int enable_cpucache(struct kmem_c if (err) goto end; - if (limit && shared && batchcount) - goto skip_setup; /* * The head array serves three purposes: * - create a LIFO ordering, i.e. return objects that are cache-warm @@ -3944,7 +3942,6 @@ static int enable_cpucache(struct kmem_c limit = 32; #endif batchcount = (limit + 1) / 2; -skip_setup: err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); end: if (err)