mm, slub: restore irqs around calling new_slab()
authorVlastimil Babka <vbabka@suse.cz>
Mon, 10 May 2021 14:30:01 +0000 (16:30 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Fri, 3 Sep 2021 23:12:21 +0000 (01:12 +0200)
commit6c1dbb674c5cf76d23381160577d34bead60b76b
treedb4270c4e7ea19a060f811043e1d6bac3805eafd
parentfa417ab7506f9234100e249938d13e94a8c404e8
mm, slub: restore irqs around calling new_slab()

allocate_slab() currently re-enables irqs before calling to the page allocator.
It depends on gfpflags_allow_blocking() to determine if it's safe to do so.
Now we can instead simply restore irq before calling it through new_slab().
The other caller early_kmem_cache_node_alloc() is unaffected by this.

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c