mm, slub: don't disable irqs in slub_cpu_dead()
slub_cpu_dead() cleans up for an offlined cpu from another cpu and calls only functions that are now irq safe, so we don't need to disable irqs anymore. Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
This commit is contained in:
@@ -2554,14 +2554,10 @@ static void flush_all(struct kmem_cache *s)
|
|||||||
static int slub_cpu_dead(unsigned int cpu)
|
static int slub_cpu_dead(unsigned int cpu)
|
||||||
{
|
{
|
||||||
struct kmem_cache *s;
|
struct kmem_cache *s;
|
||||||
unsigned long flags;
|
|
||||||
|
|
||||||
mutex_lock(&slab_mutex);
|
mutex_lock(&slab_mutex);
|
||||||
list_for_each_entry(s, &slab_caches, list) {
|
list_for_each_entry(s, &slab_caches, list)
|
||||||
local_irq_save(flags);
|
|
||||||
__flush_cpu_slab(s, cpu);
|
__flush_cpu_slab(s, cpu);
|
||||||
local_irq_restore(flags);
|
|
||||||
}
|
|
||||||
mutex_unlock(&slab_mutex);
|
mutex_unlock(&slab_mutex);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user