Re: [PATCH] rust: revocable: use LKMM atomics instead of Rust atomics
FUJITA Tomonori <[email protected]>
| Newsgroups | org.kernel.vger.rust-for-linux,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 16 Jul 2026 15:55:35 +0100 Gary Guo <[email protected]> wrote: > From: Gary Guo <[email protected]> > > Kernel code should use LKMM atomics. The existing code is `AtomicBool` with > the need to use `xchg`, so convert it to `AtomicFlag`. > > Signed-off-by: Gary Guo <[email protected]> > --- > rust/kernel/revocable.rs | 26 ++++++++++++++++++-------- > 1 file changed, 18 insertions(+), 8 deletions(-) Reviewed-by: FUJITA Tomonori <[email protected]>