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>
pull/1354/merge
Bart Van Assche 2025-11-11 15:29:01 -08:00 committed by Jens Axboe
parent fd0ae4754c
commit faa3be1a61
1 changed files with 2 additions and 0 deletions

View 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, static void disk_zone_wplug_schedule_bio_work(struct gendisk *disk,
struct blk_zone_wplug *zwplug) struct blk_zone_wplug *zwplug)
{ {
lockdep_assert_held(&zwplug->lock);
/* /*
* Take a reference on the zone write plug and schedule the submission * 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 * of the next plugged BIO. blk_zone_wplug_bio_work() will release the