Re: [PATCH v16 14/17] rust: sync: Expose lock::Backend

From: Benno Lossin

Date: Mon Dec 22 2025 - 01:27:57 EST


On Mon Dec 15, 2025 at 6:58 PM CET, Lyude Paul wrote:
> Due to the addition of sync::lock::Backend::Context, lock guards can be
> returned with a different Backend than their respective lock. Since we'll
> be adding a trait bound for Backend to GlobalGuard in order to support
> this, users will need to be able to directly refer to Backend so that they
> can use it in trait bounds.
>
> So, let's make this easier for users and expose Backend in sync.
>
> Signed-off-by: Lyude Paul <lyude@xxxxxxxxxx>

Reviewed-by: Benno Lossin <lossin@xxxxxxxxxx>

Cheers,
Benno

> ---
> rust/kernel/sync.rs | 1 +
> 1 file changed, 1 insertion(+)