[PATCH v2 0/2] rust: sync: Atomic pointer

Boqun Feng posted 2 patches 2 weeks, 4 days ago
rust/helpers/atomic_ext.c            |  3 ++
rust/kernel/sync/atomic.rs           | 12 +++++++-
rust/kernel/sync/atomic/internal.rs  | 37 ++++++++++++++--------
rust/kernel/sync/atomic/predefine.rs | 46 ++++++++++++++++++++++++++++
4 files changed, 85 insertions(+), 13 deletions(-)
[PATCH v2 0/2] rust: sync: Atomic pointer
Posted by Boqun Feng 2 weeks, 4 days ago
I've already queued the first 3 patches in v1, but comments on them are
welcome as well. The RCU pointer patch is not included in this v2 since
there is not much update and I'm still hoping to get some reviews on
that for another respin.

Changes since v1:

* Add a clarification patch of CONFIG_ARCH_SUPPORTS_ATOMIC_RMW as
  suggested by Dirk and Benno.

* Add support for Atomic<*const T>.

v1: https://lore.kernel.org/rust-for-linux/20260117122243.24404-1-boqun.feng@gmail.com/

Regards,
Boqun


Boqun Feng (2):
  rust: sync: atomic: Clarify the need of
    CONFIG_ARCH_SUPPORTS_ATOMIC_RMW
  rust: sync: atomic: Add Atomic<*{mut,const} T> support

 rust/helpers/atomic_ext.c            |  3 ++
 rust/kernel/sync/atomic.rs           | 12 +++++++-
 rust/kernel/sync/atomic/internal.rs  | 37 ++++++++++++++--------
 rust/kernel/sync/atomic/predefine.rs | 46 ++++++++++++++++++++++++++++
 4 files changed, 85 insertions(+), 13 deletions(-)

-- 
2.51.0
Re: [PATCH v2 0/2] rust: sync: Atomic pointer
Posted by Boqun Feng 2 weeks, 1 day ago
On Tue, Jan 20, 2026 at 10:05:01PM +0800, Boqun Feng wrote:
> I've already queued the first 3 patches in v1, but comments on them are
> welcome as well. The RCU pointer patch is not included in this v2 since
> there is not much update and I'm still hoping to get some reviews on
> that for another respin.
> 
> Changes since v1:
> 
> * Add a clarification patch of CONFIG_ARCH_SUPPORTS_ATOMIC_RMW as
>   suggested by Dirk and Benno.
> 
> * Add support for Atomic<*const T>.
> 
> v1: https://lore.kernel.org/rust-for-linux/20260117122243.24404-1-boqun.feng@gmail.com/
> 

Queued for v7.1, thanks you all!

Regards,
Boqun

> Regards,
> Boqun
> 
> 
> Boqun Feng (2):
>   rust: sync: atomic: Clarify the need of
>     CONFIG_ARCH_SUPPORTS_ATOMIC_RMW
>   rust: sync: atomic: Add Atomic<*{mut,const} T> support
> 
>  rust/helpers/atomic_ext.c            |  3 ++
>  rust/kernel/sync/atomic.rs           | 12 +++++++-
>  rust/kernel/sync/atomic/internal.rs  | 37 ++++++++++++++--------
>  rust/kernel/sync/atomic/predefine.rs | 46 ++++++++++++++++++++++++++++
>  4 files changed, 85 insertions(+), 13 deletions(-)
> 
> -- 
> 2.51.0
>