mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/2] (no cover subject)
@ 2026-06-05 10:34 Andreas Hindborg
  2026-06-05 10:34 ` [PATCH v4 1/2] rust: sync: atomic: add atomic_per_byte_memcpy Andreas Hindborg
  2026-06-05 10:34 ` [PATCH v4 2/2] rust: page: add byte-wise atomic memory copy methods Andreas Hindborg
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Hindborg @ 2026-06-05 10:34 UTC (permalink / raw)
  To: Alice Ryhl, Miguel Ojeda, Gary Guo, Björn Roy Baron,
	Benno Lossin, Trevor Gross, Danilo Krummrich, Will Deacon,
	Peter Zijlstra, Mark Rutland, Boqun Feng, Lorenzo Stoakes,
	Liam R. Howlett, Lorenzo Stoakes, Liam R. Howlett, Boqun Feng
  Cc: linux-mm, rust-for-linux, linux-kernel, Andreas Hindborg

Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
---
Changes in v4:
- Split `atomic_per_byte_memcpy` out into its own patch (Boqun).
- Expand `atomic_per_byte_memcpy` documentation to explain the
  concurrent-safe semantics and to note that the kernel's `memcpy()`
  uses byte-wise atomic load/store instructions (Boqun).
- Clarify the src/dst asymmetry in the documentation of
  `Page::{read,write}_bytewise_atomic` (Boqun).
- Use the "valid for atomic {reads,writes}" shorthand in the safety
  lists of the new methods and of `atomic_per_byte_memcpy` (Benno).
- Drop the redundant data-race bullets that v3 added on
  `Page::{read,write}_raw` (Miguel).
- Link to v3: https://msgid.link/20260213-page-volatile-io-v3-1-d60487b04d40@kernel.org

Changes in v3:
- Update documentation adn safety requirements for `Page::{read,write}_bytewise_atomic`.
- Update safety comments in `Page::{read,write}_bytewise_atomic`.
- Call the correct copy function in `Page::{read,write}_bytewise_atomic`.
- Link to v2: https://msgid.link/20260212-page-volatile-io-v2-1-a36cb97d15c2@kernel.org

Changes in v2:
- Rewrite patch with byte-wise atomic operations as foundation of operation.
- Update subject and commit message.
- Link to v1: https://lore.kernel.org/r/20260130-page-volatile-io-v1-1-19f3d3e8f265@kernel.org

To: Will Deacon <will@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>
To: Boqun Feng <boqun@kernel.org>
To: Mark Rutland <mark.rutland@arm.com>
To: Gary Guo <gary@garyguo.net>
To: Miguel Ojeda <ojeda@kernel.org>
To: Björn Roy Baron <bjorn3_gh@protonmail.com>
To: Benno Lossin <lossin@kernel.org>
To: Andreas Hindborg <a.hindborg@kernel.org>
To: Alice Ryhl <aliceryhl@google.com>
To: Trevor Gross <tmgross@umich.edu>
To: Danilo Krummrich <dakr@kernel.org>
To: Lorenzo Stoakes <ljs@kernel.org>
To: "Liam R. Howlett" <liam@infradead.org>
Cc: linux-kernel@vger.kernel.org
Cc: rust-for-linux@vger.kernel.org
Cc: linux-mm@kvack.org

---
Andreas Hindborg (2):
      rust: sync: atomic: add atomic_per_byte_memcpy
      rust: page: add byte-wise atomic memory copy methods

 rust/kernel/page.rs        | 70 ++++++++++++++++++++++++++++++++++++++++++++++
 rust/kernel/sync/atomic.rs | 35 +++++++++++++++++++++++
 2 files changed, 105 insertions(+)
---
base-commit: 7fd2df204f342fc17d1a0bfcd474b24232fb0f32
change-id: 20260130-page-volatile-io-05ff595507d3

Best regards,
--  
Andreas Hindborg <a.hindborg@kernel.org>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-05 10:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05 10:34 [PATCH v4 0/2] (no cover subject) Andreas Hindborg
2026-06-05 10:34 ` [PATCH v4 1/2] rust: sync: atomic: add atomic_per_byte_memcpy Andreas Hindborg
2026-06-05 10:34 ` [PATCH v4 2/2] rust: page: add byte-wise atomic memory copy methods Andreas Hindborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®