On Wed, Aug 23, 2023 at 10:38:23AM +0800, Huang, Ying wrote: > > Thanks for reminding! That's a good point. > > Checked the implementation of rt_mutex version of spin_trylock(). One > possible code path is, > > spin_trylock() > rt_spin_trylock() > __rt_spin_trylock() > rt_mutex_slowtrylock() > raw_spin_lock_irqsave() You are right. I'm actually quite surprised how we turn a trylock into a spinning lock. Now I know, thank you! Jörn -- "Security vulnerabilities are here to stay." -- Scott Culp, Manager of the Microsoft Security Response Center, 2001