]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking
authorBart Van Assche <bvanassche@acm.org>
Tue, 11 Nov 2025 23:29:01 +0000 (15:29 -0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 12 Nov 2025 21:05:23 +0000 (14:05 -0700)
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>
block/blk-zoned.c

index 57ab2b365c2d0075bfab456e1c45f8b2106eb7e8..5487d5eb26508688a945dd0251bad389cc8de48b 100644 (file)
@@ -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