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
parent
fd0ae4754c
commit
faa3be1a61
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue