Re: [PATCH] rust: revocable: use LKMM atomics instead of Rust atomics

From: FUJITA Tomonori

Date: Fri Jul 17 2026 - 01:26:58 EST


On Thu, 16 Jul 2026 15:55:35 +0100
Gary Guo <gary@xxxxxxxxxx> wrote:

> From: Gary Guo <gary@xxxxxxxxxxx>
>
> 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 <gary@xxxxxxxxxxx>
> ---
> rust/kernel/revocable.rs | 26 ++++++++++++++++++--------
> 1 file changed, 18 insertions(+), 8 deletions(-)

Reviewed-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxx>