summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2021-05-21 01:48:56 +0200
committerVlastimil Babka <vbabka@suse.cz>2021-09-04 01:12:22 +0200
commit0e7ac738f785e695acfa1203a87f6a505305542a (patch)
tree12f36d1529b366f9291cdcb63c7ed7e86bbf5043 /mm
parent7cf9f3ba2f02216b2303e648c0c5439f00191008 (diff)
downloadlinux-stable-0e7ac738f785e695acfa1203a87f6a505305542a.tar.gz
linux-stable-0e7ac738f785e695acfa1203a87f6a505305542a.tar.bz2
linux-stable-0e7ac738f785e695acfa1203a87f6a505305542a.zip
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>
Diffstat (limited to 'mm')
-rw-r--r--mm/slub.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/slub.c b/mm/slub.c
index c5766e504e73..c4a9b8901576 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -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;
}