Re: [PATCH v3 2/3] Make raw_spin_rq_unlock inline
From: Thomas Gleixner
Date: Fri Nov 14 2025 - 14:44:16 EST
On Thu, Nov 13 2025 at 18:52, Xie Yuanbin wrote:
> This function is short, and is called in some critical hot code paths,
> such as finish_lock_switch.
>
> Make it inline to optimize performance.
> +static inline void raw_spin_rq_unlock(struct rq *rq)
That inline does not guarantee that the compiler actually inlines
it. clang is obnoxiously bad at that.