Re: [PATCH 0/2] rust: fix erranous use of lock class key in rust block device bindings
From: Miguel Ojeda
Date: Wed Aug 21 2024 - 07:33:41 EST
On Thu, Aug 15, 2024 at 9:49 AM Andreas Hindborg <nmi@xxxxxxxxxxxx> wrote:
>
> From: Andreas Hindborg <a.hindborg@xxxxxxxxxxx>
>
> The rust block device bindings include a wrong use of lock class key. This
> causes a WARN trace when lockdep is enabled and a `GenDisk` is constructed.
>
> This series fixes the issue by using a static lock class key. To do this, the
> series first fixes the rust build system to correctly export rust statics from
> the bss segment.
Applied to `rust-fixes` -- thanks everyone!
(I am sending the notice twice for this series, since somehow the
email threads got split into two in Lore, which also broke `b4`)
[ Applied `rustfmt` and reworded slightly. - Miguel ]
Cheers,
Miguel