mm, slub: stop disabling irqs around get_partial()
authorVlastimil Babka <vbabka@suse.cz>
Tue, 11 May 2021 15:45:26 +0000 (17:45 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Fri, 3 Sep 2021 23:12:21 +0000 (01:12 +0200)
commit4b1f449dedd2ff1eede4ced08a503e13c8d668ce
treeb62ea094b918c5c85a691a27d01ef9e328dce165
parent9f101ee89465e0b2c11b477f5b55e03039b2c308
mm, slub: stop disabling irqs around get_partial()

The function get_partial() does not need to have irqs disabled as a whole. It's
sufficient to convert spin_lock operations to their irq saving/restoring
versions.

As a result, it's now possible to reach the page allocator from the slab
allocator without disabling and re-enabling interrupts on the way.

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