[PATCH 0/3] Remove the usage of Rust native atomics in debugfs
From: Boqun Feng
Date: Tue Oct 21 2025 - 23:53:31 EST
Rust native atomics are not supposed to be used in kernel due to the
mismatch of memory model, since we now have the LKMM atomics in Rust,
remove the usage of Rust native atomics in debugfs.
(help is appreciated if anyone wants to help in other subsystem)
Boqun Feng (3):
rust: sync: atomic: Make Atomic*Ops pub(crate)
rust: sync: atomic: Implement Debug for Atomic<Debug>
rust: debugfs: Replace the usage of Rust native atomics
rust/kernel/debugfs/traits.rs | 53 +++++++++--------------------
rust/kernel/sync/atomic.rs | 12 ++++++-
samples/rust/rust_debugfs.rs | 12 +++----
samples/rust/rust_debugfs_scoped.rs | 6 ++--
4 files changed, 36 insertions(+), 47 deletions(-)
--
2.51.0