Re: [PATCH 2/2] mm: slub: use DEFINE_RAW_SPINLOCK init object_map_lock

From: Andrew Morton
Date: Tue May 25 2021 - 19:17:01 EST


On Tue, 25 May 2021 12:46:35 +0200 Vlastimil Babka <vbabka@xxxxxxx> wrote:

> On 5/25/21 12:23 PM, Yejune Deng wrote:
> > Use DEFINE_RAW_SPINLOCK instead of DEFINE_SPINLOCK object_map_lock
> > that won't be preempted on mainline and PREEMPT_RT kernels.
> >
> > Signed-off-by: Yejune Deng <yejunedeng@xxxxxxxxx>
>
> RT tree also has such patch, with IMHO more thorough description:

Yes please, a more thorough decription is needed. The description
provided with this patch could be applied to every spinlock in the
kernel!