Skip to content

Remove the usage of Rust native atomics in debugfs

Boqun Feng lkml rust-for-linux 1 version Applied

Status from this message: The following commit has been merged into the locking/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3rust: sync: atomic: Make Atomic*Ops pub(crate)rust/kernel/sync/atomic.rs+2 -10 replies
2/3rust: sync: atomic: Implement Debug for Atomic<Debug>rust/kernel/sync/atomic.rs+9 -00 replies
3/3rust: debugfs: Replace the usage of Rust native atomicsrust/kernel/debugfs/traits.rs samples/rust/rust_debugfs.rs samples/rust/rust_debugfs_scoped.rs+25 -462 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDanilo KrummrichGreg Kroah-HartmanMatthew MaurerDavid Gow
SeriesA-b T-b
1/3
2/3
3/3A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] Remove the usage of Rust native atomics in debugfs

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(-)
Signature · 1 line
2.51.0