Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Bart Van Assche and committed by
Jens Axboe
faa3be1a fd0ae475

+2
+2
block/blk-zoned.c
··· 1188 1188 static void disk_zone_wplug_schedule_bio_work(struct gendisk *disk, 1189 1189 struct blk_zone_wplug *zwplug) 1190 1190 { 1191 + lockdep_assert_held(&zwplug->lock); 1192 + 1191 1193 /* 1192 1194 * Take a reference on the zone write plug and schedule the submission 1193 1195 * of the next plugged BIO. blk_zone_wplug_bio_work() will release the