diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |