rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] rust: fix erranous use of lock class key in rust block device bindings
@ 2024-08-15  7:49 Andreas Hindborg
  2024-08-15  7:49 ` [PATCH 2/2] rust: block: fix wrong usage of lockdep API Andreas Hindborg
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Andreas Hindborg @ 2024-08-15  7:49 UTC (permalink / raw)
  To: Jens Axboe, Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho
  Cc: Andreas Hindborg, Boqun Feng, Gary Guo, Björn Roy Baron,
	Benno Lossin, Alice Ryhl, Behme Dirk (XC-CP/ESB5),
	linux-block@vger.kernel.org, rust-for-linux, linux-kernel

From: Andreas Hindborg <a.hindborg@samsung.com>

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.

Andreas Hindborg (2):
  rust: fix export of bss symbols
  rust: block: fix wrong usage of lockdep API

 rust/Makefile                    | 2 +-
 rust/kernel/block/mq/gen_disk.rs | 6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)


base-commit: 7c626ce4bae1ac14f60076d00eafe71af30450ba
-- 
2.46.0




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

end of thread, other threads:[~2024-08-21 11:54 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15  7:49 [PATCH 0/2] rust: fix erranous use of lock class key in rust block device bindings Andreas Hindborg
2024-08-15  7:49 ` [PATCH 2/2] rust: block: fix wrong usage of lockdep API Andreas Hindborg
2024-08-15  8:04   ` Alice Ryhl
2024-08-15 19:05     ` Benno Lossin
2024-08-15 19:15       ` Benno Lossin
2024-08-15 21:34         ` Boqun Feng
2024-08-15 19:07     ` Gary Guo
2024-08-15 21:32       ` Boqun Feng
2024-08-15 21:42         ` Gary Guo
2024-08-16 13:08           ` Benno Lossin
2024-08-15 10:02   ` Dirk Behme
2024-08-16 15:59   ` Benno Lossin
2024-08-15 14:22 ` [PATCH 0/2] rust: fix erranous use of lock class key in rust block device bindings Jens Axboe
2024-08-15 15:31   ` Miguel Ojeda
2024-08-15 16:00     ` Jens Axboe
2024-08-16  8:54       ` Miguel Ojeda
2024-08-21 10:50 ` Miguel Ojeda
2024-08-21 11:36   ` Miguel Ojeda
2024-08-21 11:54     ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).