]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: list: Switch to kernel::sync atomic primitives
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Tue, 30 Dec 2025 09:37:17 +0000 (18:37 +0900)
committerBoqun Feng <boqun.feng@gmail.com>
Fri, 9 Jan 2026 11:01:41 +0000 (19:01 +0800)
commit323e4bfcbe2dc6c6cac6e007dded0ba4f89a6458
tree970e1616b1594212f898cbcf101203ad572aa0f6
parent4bac28727a2b3f33e6375aeafdf31df67deff5d0
rust: list: Switch to kernel::sync atomic primitives

Convert uses of `AtomicBool` to `Atomic<bool>`.

Note that the compare_exchange migration simplifies to
`try_cmpxchg()`, since `try_cmpxchg()` provides relaxed ordering on
failure, making the explicit failure ordering unnecessary.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://patch.msgid.link/20251230093718.1852322-3-fujita.tomonori@gmail.com
rust/kernel/list/arc.rs