Skip to content

Commit

Permalink
mm, slub: don't disable irqs in slub_cpu_dead()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tehcaster committed Sep 3, 2021
1 parent 7cf9f3b commit 0e7ac73
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2554,14 +2554,10 @@ static void flush_all(struct kmem_cache *s)
static int slub_cpu_dead(unsigned int cpu)
{
struct kmem_cache *s;
unsigned long flags;

mutex_lock(&slab_mutex);
list_for_each_entry(s, &slab_caches, list) {
local_irq_save(flags);
list_for_each_entry(s, &slab_caches, list)
__flush_cpu_slab(s, cpu);
local_irq_restore(flags);
}
mutex_unlock(&slab_mutex);
return 0;
}
Expand Down

0 comments on commit 0e7ac73

Please sign in to comment.