Skip to contentSkip to conversation

blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking

PATCH In review Bart Van Assche 3 participants 4 messages Nov 12, 2025 – Nov 13, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 block/blk-zoned.c | 2 ++
 1 file changed, 2 insertions(+)
block/blk-zoned.c +2 -0
index 57ab2b365c2d..5487d5eb2650 100644
@@ -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
maintainer
#2 lore raw
In reply to Bart Van Assche
Quoted 2 lines · Bart Van Assche

Document that all callers hold this lock because the code in disk_zone_wplug_schedule_bio_work() depends on this.

This is already included in your previous series?

Signature · 1 line
Jens Axboe
#3 lore raw
Quoted 5 lines · Jens Axboe
Quoted 2 lines · Bart Van Assche

Document that all callers hold this lock because the code in disk_zone_wplug_schedule_bio_work() depends on this.

This is already included in your previous series?

Hi Jens,

You are right, this patch is already in the series "[PATCH v2 0/3] Refactor blk_zone_wplug_handle_write()" and is already in your for-next branch. Thanks for having reported this. Something went wrong at my side (wrong branch?). I will check which SCSI patch I actually wanted to
send out and resend it.

Bart.