block: Modify revalidate zones
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 12 May 2020 08:55:49 +0000 (17:55 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 13 May 2020 02:36:28 +0000 (20:36 -0600)
commite732671aa5f67232cf760666a15242dead003362
tree2926f17e57252c5c6a75a0e9799a9b956fa42a6a
parent1392d37018d4f68c5bb2c98dae9a018b73926865
block: Modify revalidate zones

Modify the interface of blk_revalidate_disk_zones() to add an optional
driver callback function that a driver can use to extend processing
done during zone revalidation. The callback, if defined, is executed
with the device request queue frozen, after all zones have been
inspected.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c
drivers/block/null_blk_zoned.c
include/linux/blkdev.h