[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <DF4J6Q6YVQ51.11ERBEYH4SA4G@kernel.org>
Date: Mon, 22 Dec 2025 07:28:14 +0100
From: "Benno Lossin" <lossin@...nel.org>
To: "Lyude Paul" <lyude@...hat.com>, <rust-for-linux@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, "Thomas Gleixner" <tglx@...utronix.de>
Cc: "Boqun Feng" <boqun.feng@...il.com>, "Daniel Almeida"
<daniel.almeida@...labora.com>, "Miguel Ojeda" <ojeda@...nel.org>, "Alex
Gaynor" <alex.gaynor@...il.com>, "Gary Guo" <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>, "Andreas
Hindborg" <a.hindborg@...nel.org>, "Alice Ryhl" <aliceryhl@...gle.com>,
"Trevor Gross" <tmgross@...ch.edu>, "Danilo Krummrich" <dakr@...nel.org>,
"Andrew Morton" <akpm@...ux-foundation.org>, "Peter Zijlstra"
<peterz@...radead.org>, "Ingo Molnar" <mingo@...hat.com>, "Will Deacon"
<will@...nel.org>, "Waiman Long" <longman@...hat.com>
Subject: Re: [PATCH v16 13/17] rust: sync: Add a lifetime parameter to
lock::global::GlobalGuard
On Mon Dec 15, 2025 at 6:58 PM CET, Lyude Paul wrote:
> While a GlobalLock is always going to be static, in the case of locks with
> explicit backend contexts the GlobalGuard will not be 'static and will
> instead share the lifetime of the context. So, add a lifetime parameter to
> GlobalGuard to allow for this so we can implement GlobalGuard support for
> SpinlockIrq.
>
> Signed-off-by: Lyude Paul <lyude@...hat.com>
Reviewed-by: Benno Lossin <lossin@...nel.org>
Cheers,
Benno
> ---
> rust/kernel/sync/lock/global.rs | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
Powered by blists - more mailing lists