Re: [PATCH v3] rust: xarray: fix false positive lockdep warnings

From: Andreas Hindborg

Date: Fri Nov 20 2026 - 07:52:16 EST



On Tue, 03 Nov 2026 17:16:28 +0100, Andreas Hindborg wrote:
> `xa_init_flags()` is a static inline that expands `spin_lock_init()`,
> which generates a single static `lock_class_key` per compilation unit.
> When used through the Rust binding helper, every Rust `XArray`
> instance ends up sharing that single key. Lockdep then sees concurrent
> locking of distinct Rust `XArray`s as recursive locking on the same
> class and emits false-positive lock-ordering reports.
>
> [...]

Applied, thanks!

[1/1] rust: xarray: fix false positive lockdep warnings
commit: 144926fa55f49c39d8bdada30b2a8b91b7dad3c4

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