Skip to content

Commit 0e7ac73

Browse files
committed
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 <[email protected]>
1 parent 7cf9f3b commit 0e7ac73

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mm/slub.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,14 +2554,10 @@ static void flush_all(struct kmem_cache *s)
25542554
static int slub_cpu_dead(unsigned int cpu)
25552555
{
25562556
struct kmem_cache *s;
2557-
unsigned long flags;
25582557

25592558
mutex_lock(&slab_mutex);
2560-
list_for_each_entry(s, &slab_caches, list) {
2561-
local_irq_save(flags);
2559+
list_for_each_entry(s, &slab_caches, list)
25622560
__flush_cpu_slab(s, cpu);
2563-
local_irq_restore(flags);
2564-
}
25652561
mutex_unlock(&slab_mutex);
25662562
return 0;
25672563
}

0 commit comments

Comments
 (0)