Re: [PATCH v6 4/7] locking: Factor out queued_spin_release()

From: Steven Rostedt

Date: Wed May 13 2026 - 11:58:48 EST


On Tue, 5 May 2026 17:09:33 +0000
Dmitry Ilvokhin <d@xxxxxxxxxxxx> wrote:

> Introduce queued_spin_release() as an arch-overridable unlock primitive,
> and make queued_spin_unlock() a generic wrapper around it.
>
> This is a preparatory refactoring for the next commit, which adds
> contended_release tracepoint instrumentation to queued_spin_unlock().

In change logs, do not use "next commit". Instead say something like:

In preparation for adding contended_release tracepoint instrumentation to
queued_spin_unlock(), refactor the code to allow out of line calls when
the tracepoint is enabled.

Or something like that.

-- Steve



>
> Rename the existing arch-specific queued_spin_unlock() overrides on
> x86 (paravirt) and MIPS to queued_spin_release().
>
> No functional change.
>
> Signed-off-by: Dmitry Ilvokhin <d@xxxxxxxxxxxx>
> Reviewed-by: Paul E. McKenney <paulmck@xxxxxxxxxx>