Skip to content

block: assign caller-specific lockdep class to disk->open_mutex#909

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1103282=>linus-master
Open

block: assign caller-specific lockdep class to disk->open_mutex#909
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1103282=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented May 30, 2026

Copy link
Copy Markdown

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

@blktests-ci

blktests-ci Bot commented May 30, 2026

Copy link
Copy Markdown
Author

Upstream branch: 8fde5d1
series: https://patchwork.kernel.org/project/linux-block/list/?series=1103282
version: 1

@blktests-ci

blktests-ci Bot commented Jun 1, 2026

Copy link
Copy Markdown
Author

Upstream branch: e43ffb6
series: https://patchwork.kernel.org/project/linux-block/list/?series=1103282
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from 6052a26 to bdc651c Compare June 1, 2026 09:14
@blktests-ci

blktests-ci Bot commented Jun 3, 2026

Copy link
Copy Markdown
Author

Upstream branch: e43ffb6
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105056
version: 2

@blktests-ci blktests-ci Bot added V2 and removed V1 labels Jun 3, 2026
@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from bdc651c to 66a6a6c Compare June 3, 2026 06:45
@blktests-ci

blktests-ci Bot commented Jun 3, 2026

Copy link
Copy Markdown
Author

Upstream branch: e43ffb6
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot added V3 and removed V2 labels Jun 3, 2026
@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from 66a6a6c to 3cd4902 Compare June 3, 2026 12:00
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from c6dc343 to fc36596 Compare June 3, 2026 13:56
@blktests-ci

blktests-ci Bot commented Jun 3, 2026

Copy link
Copy Markdown
Author

Upstream branch: ba3e43a
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from 3cd4902 to 27b4aa0 Compare June 3, 2026 14:08
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from fc36596 to 7bed9c3 Compare June 5, 2026 09:48
@blktests-ci

blktests-ci Bot commented Jun 5, 2026

Copy link
Copy Markdown
Author

Upstream branch: ddd664b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from 27b4aa0 to 4b7fd7f Compare June 5, 2026 09:56
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 7bed9c3 to a7bb5c5 Compare June 7, 2026 14:54
@blktests-ci

blktests-ci Bot commented Jun 7, 2026

Copy link
Copy Markdown
Author

Upstream branch: 979c294
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from 4b7fd7f to b9bb292 Compare June 7, 2026 15:02
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from a7bb5c5 to 5e41a3b Compare June 10, 2026 13:31
@blktests-ci

blktests-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: acb7500
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from b9bb292 to eb41824 Compare June 10, 2026 13:39
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5e41a3b to c3a084b Compare June 10, 2026 20:26
@blktests-ci

blktests-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Author

Upstream branch: 9716c08
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from eb41824 to dcbbad1 Compare June 10, 2026 21:03
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from c3a084b to 5f78e5d Compare June 12, 2026 22:27
@blktests-ci

blktests-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Author

Upstream branch: 2a2974b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from dcbbad1 to 506b1f5 Compare June 12, 2026 23:03
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5f78e5d to e48f9db Compare June 13, 2026 01:19
@blktests-ci

blktests-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown
Author

Upstream branch: 062871f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from 506b1f5 to 75dfb3e Compare June 13, 2026 02:00
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently from 199644a to e6d9eb8 Compare June 17, 2026 12:02
@blktests-ci

blktests-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown
Author

Upstream branch: 66affa3
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from 75dfb3e to bf1acbf Compare June 17, 2026 14:32
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e6d9eb8 to 7d8604f Compare June 24, 2026 01:11
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>
@blktests-ci

blktests-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown
Author

Upstream branch: bade58e
series: https://patchwork.kernel.org/project/linux-block/list/?series=1105264
version: 3

@blktests-ci blktests-ci Bot force-pushed the series/1103282=>linus-master branch from bf1acbf to 1cfa76e Compare June 24, 2026 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants