Re: [PATCH v5 0/3] rust: add `ww_mutex` support
From: Benno Lossin
Date: Sun Jun 22 2025 - 05:16:57 EST
On Sat Jun 21, 2025 at 8:44 PM CEST, Onur Özkan wrote:
> This patch series implements Rust abstractions for kernel's
> wound/wait mutex (ww_mutex) implementation.
>
> Changes in v5:
> - Addressed documentation review notes.
> - Removed `unwrap()`s in examples and KUnit tests.
>
> Suggested-by: Lyude <thatslyude@xxxxxxxxx>
> Link: https://rust-for-linux.zulipchat.com/#narrow/channel/291566-Library/topic/Writing.20up.20wrappers.20for.20ww_mutex.3F/with/524269974
>
> Onur Özkan (3):
> rust: add C wrappers for `ww_mutex` inline functions
> implement ww_mutex abstraction for the Rust tree
> add KUnit coverage on Rust `ww_mutex` implementation
>
> rust/helpers/helpers.c | 3 +-
> rust/helpers/ww_mutex.c | 39 +++
> rust/kernel/error.rs | 1 +
> rust/kernel/sync/lock.rs | 1 +
> rust/kernel/sync/lock/ww_mutex.rs | 541 ++++++++++++++++++++++++++++++
> 5 files changed, 584 insertions(+), 1 deletion(-)
> create mode 100644 rust/helpers/ww_mutex.c
> create mode 100644 rust/kernel/sync/lock/ww_mutex.rs
Please don't send new versions with this frequency, give others time to
reply and wait until discussion dies down.
---
Cheers,
Benno