From: Boqun Feng <boqun.feng@gmail.com>
To: FUJITA Tomonori <fujita.tomonori@gmail.com>
Cc: ojeda@kernel.org, a.hindborg@kernel.org, aliceryhl@google.com,
bjorn3_gh@protonmail.com, dakr@kernel.org, gary@garyguo.net,
lossin@kernel.org, tmgross@umich.edu, acourbot@nvidia.com,
rust-for-linux@vger.kernel.org, linux-arch@vger.kernel.org
Subject: Re: [PATCH v1 0/4] rust: Add i8/i16 atomic try_cmpxchg helpers
Date: Mon, 29 Dec 2025 19:27:12 +0800 [thread overview]
Message-ID: <aVJlkCqg8tgeUb6a@tardis-2.local> (raw)
In-Reply-To: <20251227115951.1424458-1-fujita.tomonori@gmail.com>
On Sat, Dec 27, 2025 at 08:59:47PM +0900, FUJITA Tomonori wrote:
> This series adds Rust helpers for atomic try_cmpxchg on i8/i16 with
> full, acquire, release, and relaxed orderings in preparation for
> supporting Rust-side cmpxchg on those types.
>
> Rust atomic cmpxchg is implemented on top of the kernel C APIs,
> try_cmpxchg.
>
> On architectures that support Rust today, the kernel already provides
> try_cmpxchg implementations that work for i8/i16, using
> architecture-specific instructions.
>
> Tested on QEMU (86_64, arm64, riscv, loongarch, and armv7).
>
> Follow-up patches will add Rust users of these helpers.
>
> Boqun, feel free to drop the ordering-related notes from each patch.
>
Queued, thanks!
Regards,
Boqun
> FUJITA Tomonori (4):
> rust: helpers: Add i8/i16 atomic try_cmpxchg helpers
> rust: helpers: Add i8/i16 atomic try_cmpxchg_acquire helpers
> rust: helpers: Add i8/i16 atomic try_cmpxchg_release helpers
> rust: helpers: Add i8/i16 atomic try_cmpxchg_relaxed helpers
>
> rust/helpers/atomic_ext.c | 40 +++++++++++++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
>
> base-commit: 30f5de001fb2ffacdb61e82c8626cae2d68b4d03
> --
> 2.43.0
>
prev parent reply other threads:[~2025-12-29 11:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-27 11:59 [PATCH v1 0/4] rust: Add i8/i16 atomic try_cmpxchg helpers FUJITA Tomonori
2025-12-27 11:59 ` [PATCH v1 1/4] rust: helpers: " FUJITA Tomonori
2025-12-29 12:06 ` Boqun Feng
2025-12-29 12:57 ` FUJITA Tomonori
2025-12-27 11:59 ` [PATCH v1 2/4] rust: helpers: Add i8/i16 atomic try_cmpxchg_acquire helpers FUJITA Tomonori
2025-12-27 11:59 ` [PATCH v1 3/4] rust: helpers: Add i8/i16 atomic try_cmpxchg_release helpers FUJITA Tomonori
2025-12-27 11:59 ` [PATCH v1 4/4] rust: helpers: Add i8/i16 atomic try_cmpxchg_relaxed helpers FUJITA Tomonori
2025-12-29 11:27 ` Boqun Feng [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aVJlkCqg8tgeUb6a@tardis-2.local \
--to=boqun.feng@gmail.com \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=dakr@kernel.org \
--cc=fujita.tomonori@gmail.com \
--cc=gary@garyguo.net \
--cc=linux-arch@vger.kernel.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tmgross@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox