diff options
author | Christian Brauner <[email protected]> | 2023-10-17 20:48:22 +0200 |
---|---|---|
committer | Christian Brauner <[email protected]> | 2023-10-28 13:29:23 +0200 |
commit | f61033390bc34cd22ad4b4c12619a1e7a8a75600 (patch) | |
tree | 30879c8a54542a6d09eb575dc36b046356dbc592 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 6e57236ed6e070607868da70fac3d52ae24e5417 (diff) |
block: assert that we're not holding open_mutex over blk_report_disk_dead
blk_report_disk_dead() has the following major callers:
(1) del_gendisk()
(2) blk_mark_disk_dead()
Since del_gendisk() acquires disk->open_mutex it's clear that all
callers are assumed to be called without disk->open_mutex held.
In turn, blk_report_disk_dead() is called without disk->open_mutex held
in del_gendisk().
All callers of blk_mark_disk_dead() call it without disk->open_mutex as
well.
Ensure that it is clear that blk_report_disk_dead() is called without
disk->open_mutex on purpose by asserting it and a comment in the code.
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Ming Lei <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Reviewed-by: Jens Axboe <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions