Re: [PATCH v2] locktorture: Add raw_spinlock* torture tests for PREEMPT_RT kernels

From: Paul E. McKenney
Date: Fri Feb 24 2023 - 13:36:01 EST


On Thu, Feb 23, 2023 at 07:12:32PM -0800, Davidlohr Bueso wrote:
> On Fri, 24 Feb 2023, Zqiang wrote:
>
> > In PREEMPT_RT kernels, both spin_lock() and spin_lock_irq() are converted
> > to sleepable rt_spin_lock(). This means that the interrupt related suffix
> > for spin_lock/unlock(_irq, irqsave/irqrestore) do not affect the CPU's
> > interrupt state. This commit therefore adds raw spin-lock torture tests.
> > This in turn permits pure spin locks to be tested in PREEMPT_RT kernels.
> >
> > Suggested-by: Paul E. McKenney <paulmck@xxxxxxxxxx>
> > Suggested-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>
> > Signed-off-by: Zqiang <qiang1.zhang@xxxxxxxxx>
>
> Reviewed-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>

Queued replacing the previous version, thank you both!

Thanx, Paul