blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking
Subsystems (3)
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
@@ -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
Bart,
Quoted 2 lines
Document that all callers hold this lock because the code in
disk_zone_wplug_schedule_bio_work()depends on this.
Signature · 1 line
Martin K. Petersen
Jens Axboe
maintainerQuoted 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
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.