[PATCH v3 0/2] Clean up Rust LockClassKey

Alice Ryhl posted 2 patches 1 month, 3 weeks ago
rust/kernel/sync.rs | 78 +++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 58 insertions(+), 20 deletions(-)
[PATCH v3 0/2] Clean up Rust LockClassKey
Posted by Alice Ryhl 1 month, 3 weeks ago
This series applies the suggestion from Benno [1] and various other
improvements I found when looking over the LockClassKey implementation.

Based on rust-next.

[1]: https://lore.kernel.org/all/DBIJLR7XNI6U.21PMPODHE83DZ@kernel.org/

Signed-off-by: Alice Ryhl <aliceryhl@google.com>
---
Changes in v3:
- Fix duplicated "require" in commit message.
- Mention pinning in macro safety comment.
- Rebase on v6.17-rc1.
- Link to v2: https://lore.kernel.org/r/20250728-lock-class-key-cleanup-v2-0-ad02b80c69e1@google.com

Changes in v2:
- Change safety comment to require a static object. Adjust commit
  message accordingly.
- Add Reviewed-by.
- Link to v1: https://lore.kernel.org/r/20250723-lock-class-key-cleanup-v1-0-85fa506b8ca4@google.com

---
Alice Ryhl (2):
      rust: sync: refactor static_lock_class!() macro
      rust: sync: clean up LockClassKey and its docs

 rust/kernel/sync.rs | 78 +++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 58 insertions(+), 20 deletions(-)
---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250723-lock-class-key-cleanup-a3baf53b123a

Best regards,
-- 
Alice Ryhl <aliceryhl@google.com>
Re: [PATCH v3 0/2] Clean up Rust LockClassKey
Posted by Boqun Feng 1 month, 3 weeks ago
On Mon, Aug 11, 2025 at 12:14:40PM +0000, Alice Ryhl wrote:
> This series applies the suggestion from Benno [1] and various other
> improvements I found when looking over the LockClassKey implementation.
> 
> Based on rust-next.
> 
> [1]: https://lore.kernel.org/all/DBIJLR7XNI6U.21PMPODHE83DZ@kernel.org/
> 
> Signed-off-by: Alice Ryhl <aliceryhl@google.com>

Queued in rust-locking:

    git://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git rust-locking

For further testing and reviewing. Thanks!

Regards,
Boqun

> ---
> Changes in v3:
> - Fix duplicated "require" in commit message.
> - Mention pinning in macro safety comment.
> - Rebase on v6.17-rc1.
> - Link to v2: https://lore.kernel.org/r/20250728-lock-class-key-cleanup-v2-0-ad02b80c69e1@google.com
> 
> Changes in v2:
> - Change safety comment to require a static object. Adjust commit
>   message accordingly.
> - Add Reviewed-by.
> - Link to v1: https://lore.kernel.org/r/20250723-lock-class-key-cleanup-v1-0-85fa506b8ca4@google.com
> 
> ---
> Alice Ryhl (2):
>       rust: sync: refactor static_lock_class!() macro
>       rust: sync: clean up LockClassKey and its docs
> 
>  rust/kernel/sync.rs | 78 +++++++++++++++++++++++++++++++++++++++--------------
>  1 file changed, 58 insertions(+), 20 deletions(-)
> ---
> base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
> change-id: 20250723-lock-class-key-cleanup-a3baf53b123a
> 
> Best regards,
> -- 
> Alice Ryhl <aliceryhl@google.com>
>