]> git.ipfire.org Git - thirdparty/linux.git/commit - mm/slub.c
mm/slub: simplify __cmpxchg_double_slab() and slab_[un]lock()
authorVlastimil Babka <vbabka@suse.cz>
Tue, 23 Aug 2022 17:04:00 +0000 (19:04 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Fri, 16 Sep 2022 22:18:35 +0000 (00:18 +0200)
commit5875e59828a026e47f37c5e343f4fe8e0ba023b9
tree915c179f37bb1fe6cd3c22c7e7954e8f614461c4
parent4ef3f5a32051def596b2d445462a1dccda7af600
mm/slub: simplify __cmpxchg_double_slab() and slab_[un]lock()

The PREEMPT_RT specific disabling of irqs in __cmpxchg_double_slab()
(through slab_[un]lock()) is unnecessary as bit_spin_lock() disables
preemption and that's sufficient on PREEMPT_RT where no allocation/free
operation is performed in hardirq context and so can't interrupt the
current operation.

That means we no longer need the slab_[un]lock() wrappers, so delete
them and rename the current __slab_[un]lock() to slab_[un]lock().

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
mm/slub.c