Re: [PATCH] rust: sync: lock: Add an example for Guard::lock_ref()

Boqun Feng
2025-02-25T16:53:50Z

On Mon, Feb 24, 2025 at 12:19:27PM +0100, Alice Ryhl wrote:
> On Sun, Feb 23, 2025 at 8:21 AM Boqun Feng <boqun.feng@gmail.com> wrote:
> >
> > To provide examples on usage of `Guard::lock_ref()` along with the unit
> > test, an "assert a lock is held by a guard" example is added.
> >
> > Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
>
> Reviewed-by: Alice Ryhl <aliceryhl@google.com>
>

Thanks!

> > This depends on Alice's patch:
> >
> > https://lore.kernel.org/all/20250130-guard-get-lock-v1-1-8ed87899920a@google.com/
> >
> > I'm also OK to fold this in if Alice thinks it's fine.
>
> I think we can just keep two patches :)
>

Fine by me.

Regards,
Boqun

> Alice