From: Bart Van Assche Date: Tue, 11 Nov 2025 23:29:01 +0000 (-0800) Subject: blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=faa3be1a61bfaace4c2bd57434de7b13347f9f31;p=thirdparty%2Flinux.git 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 Reviewed-by: Damien Le Moal Cc: Christoph Hellwig Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe --- diff --git a/block/blk-zoned.c b/block/blk-zoned.c index 57ab2b365c2d0..5487d5eb26508 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