Re: [PATCH] locking: Revert switching guards to _irq_{disable,enable}()
From: Boqun Feng
Date: Sun Aug 30 2026 - 17:43:13 EST
On Sun, Aug 30, 2026 at 09:57:30PM +0200, Thomas Gleixner wrote:
[...]
> +
> +#ifdef CONFIG_RT
0 day probably will find it, but FWIW this one should be
CONFIG_PREEMPT_RT.
Regards,
Boqun
> +static __always_inline void spin_lock_irq_disable(spinlock_t *lock)
> + __acquires(lock)
> +{
> + rt_spin_lock(lock);
> +}
> +
> +static __always_inline void spin_unlock_irq_enable(spinlock_t *lock)
> + __releases(lock)
> +{
> + rt_spin_unlock(lock);
> +}
> +
> +static __always_inline int spin_trylock_irq_disable(spinlock_t *lock)
> + __cond_acquires(true, lock)
> +{
> + return rt_spin_trylock(lock);
> +}
> +
> +#else /* CONFIG_RT */
> +
[...]