diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2025-11-11 15:29:01 -0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-11-12 14:05:23 -0700 |
| commit | faa3be1a61bfaace4c2bd57434de7b13347f9f31 (patch) | |
| tree | b6312f86f534850a0e1dec8595cec1234d107f50 | |
| parent | fd0ae4754c7b2add72338b14ddc8c8ff5ffda426 (diff) | |
blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking
Document that all callers hold this lock because the code in
disk_zone_wplug_schedule_bio_work() depends on this.
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
| -rw-r--r-- | block/blk-zoned.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-zoned.c b/block/blk-zoned.c index 57ab2b365c2d..5487d5eb2650 100644 --- a/block/blk-zoned.c +++ b/block/blk-zoned.c @@ -1188,6 +1188,8 @@ void blk_zone_mgmt_bio_endio(struct bio *bio) static void disk_zone_wplug_schedule_bio_work(struct gendisk *disk, struct blk_zone_wplug *zwplug) { + lockdep_assert_held(&zwplug->lock); + /* * Take a reference on the zone write plug and schedule the submission * of the next plugged BIO. blk_zone_wplug_bio_work() will release the |
