diff options
author | Andreas Hindborg <[email protected]> | 2024-08-15 07:49:43 +0000 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2024-08-21 13:28:13 +0200 |
commit | fd764e74e5b75512be1b55ec9680a6c35885cc63 (patch) | |
tree | 6327a8c16e4d2be7e5353da04ac0194c555fafa3 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | b8673d56935c32a4e0a1a0b40951fdd313dbf340 (diff) |
rust: block: fix wrong usage of lockdep API
When allocating `struct gendisk`, `GenDiskBuilder` is using a dynamic
lock class key without registering the key. This is an incorrect use of
the API, which causes a `WARN` trace.
Fix the issue by using a static lock class key, which is more appropriate
for the situation anyway.
Fixes: 3253aba3408a ("rust: block: introduce `kernel::block::mq` module")
Reported-by: Behme Dirk (XC-CP/ESB5) <[email protected]>
Closes: https://rust-for-linux.zulipchat.com/#narrow/stream/x/topic/x/near/457090036
Signed-off-by: Andreas Hindborg <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Reviewed-by: Gary Guo <[email protected]>
Reviewed-by: Alice Ryhl <[email protected]>
Tested-by: Dirk Behme <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Applied `rustfmt`, reworded slightly and made Zulip link
a permalink. - Miguel ]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions