]> git.baikalelectronics.ru Git - kernel.git/commit
mm/slub: convert object_map_lock to non-raw spinlock
authorVlastimil Babka <vbabka@suse.cz>
Tue, 23 Aug 2022 17:03:59 +0000 (19:03 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Fri, 16 Sep 2022 22:18:34 +0000 (00:18 +0200)
commit610359ecdcbe2740ad850cc4055a63e9b5932924
treed3457eb74071afed005caf6919b6afb6f4b2943c
parent59939a5be00cb0236a23566ea0f360ba600849cb
mm/slub: convert object_map_lock to non-raw spinlock

The only remaining user of object_map_lock is list_slab_objects().
Obtaining the lock there used to happen under slab_lock() which implied
disabling irqs on PREEMPT_RT, thus it's a raw_spinlock. With the
slab_lock() removed, we can convert it to a normal spinlock.

Also remove the get_map()/put_map() wrappers as list_slab_objects()
became their only remaining user.

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