diff options
| author | Sweet Tea Dorminy <[email protected]> | 2023-08-17 14:15:56 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-08-18 21:00:39 +0000 |
| commit | c984ff1423ae9f70b1f28ce811856db0d9c99021 (patch) | |
| tree | 4951e9214ede8f9b1fba254c2daca9a4b8948544 /tools/perf/scripts/python/sctop.py | |
| parent | blk-cgroup: hold queue_lock when removing blkg->q_node (diff) | |
| download | kernel-c984ff1423ae9f70b1f28ce811856db0d9c99021.tar.gz kernel-c984ff1423ae9f70b1f28ce811856db0d9c99021.zip | |
blk-crypto: dynamically allocate fallback profile
blk_crypto_profile_init() calls lockdep_register_key(), which warns and
does not register if the provided memory is a static object.
blk-crypto-fallback currently has a static blk_crypto_profile and calls
blk_crypto_profile_init() thereupon, resulting in the warning and
failure to register.
Fortunately it is simple enough to use a dynamically allocated profile
and make lockdep function correctly.
Fixes: 2fb48d88e77f ("blk-crypto: use dynamic lock class for blk_crypto_profile::lock")
Cc: [email protected]
Signed-off-by: Sweet Tea Dorminy <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
