aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 807d86c76908..1880d482a0cb 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3879,7 +3879,12 @@ static int __do_tune_cpucache(struct kmem_cache *cachep, int limit,
3879 3879
3880 prev = cachep->cpu_cache; 3880 prev = cachep->cpu_cache;
3881 cachep->cpu_cache = cpu_cache; 3881 cachep->cpu_cache = cpu_cache;
3882 kick_all_cpus_sync(); 3882 /*
3883 * Without a previous cpu_cache there's no need to synchronize remote
3884 * cpus, so skip the IPIs.
3885 */
3886 if (prev)
3887 kick_all_cpus_sync();
3883 3888
3884 check_irq_on(); 3889 check_irq_on();
3885 cachep->batchcount = batchcount; 3890 cachep->batchcount = batchcount;