block: assign caller-specific lockdep class to disk->open_mutex#909
block: assign caller-specific lockdep class to disk->open_mutex#909blktests-ci[bot] wants to merge 1 commit into
Conversation
|
Upstream branch: 8fde5d1 |
3f4a345 to
c6dc343
Compare
|
Upstream branch: e43ffb6 |
6052a26 to
bdc651c
Compare
|
Upstream branch: e43ffb6 |
bdc651c to
66a6a6c
Compare
|
Upstream branch: e43ffb6 |
66a6a6c to
3cd4902
Compare
c6dc343 to
fc36596
Compare
|
Upstream branch: ba3e43a |
3cd4902 to
27b4aa0
Compare
fc36596 to
7bed9c3
Compare
|
Upstream branch: ddd664b |
27b4aa0 to
4b7fd7f
Compare
7bed9c3 to
a7bb5c5
Compare
|
Upstream branch: 979c294 |
4b7fd7f to
b9bb292
Compare
a7bb5c5 to
5e41a3b
Compare
|
Upstream branch: acb7500 |
b9bb292 to
eb41824
Compare
5e41a3b to
c3a084b
Compare
|
Upstream branch: 9716c08 |
eb41824 to
dcbbad1
Compare
c3a084b to
5f78e5d
Compare
|
Upstream branch: 2a2974b |
dcbbad1 to
506b1f5
Compare
5f78e5d to
e48f9db
Compare
|
Upstream branch: 062871f |
506b1f5 to
75dfb3e
Compare
199644a to
e6d9eb8
Compare
|
Upstream branch: 66affa3 |
75dfb3e to
bf1acbf
Compare
e6d9eb8 to
7d8604f
Compare
The block core currently allocates a single monolithic lockdep key for disk->open_mutex across all callers. This single key conflates locking hierarchies between independent block streams. For example, if a stacked driver like loop flushes its internal workqueues inside lo_release() while holding its own open_mutex, lockdep views this as a potential ABBA deadlock against the underlying storage stack, leading to numerous circular dependency splats. To structurally reduce false positives, this patch splits the global monolithic lock class into distinct, per-caller instances during disk allocation. This is done by replacing "struct lock_class_key" with "struct gendisk_lkclass", which contains two instances of "struct lock_class_key" for the legacy "(bio completion)" map and disk->open_mutex respectively. Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
|
Upstream branch: bade58e |
bf1acbf to
1cfa76e
Compare
Pull request for series with
subject: block: assign caller-specific lockdep class to disk->open_mutex
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1103282