block: don't handle bio based drivers in blk_revalidate_disk_zones
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Dec 2019 09:39:07 +0000 (10:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Dec 2019 15:51:25 +0000 (08:51 -0700)
commitae58954d8734c44298f55ed71e683ea944994fab
treeff1253e9b9cbe3550d4930f8a6eeaf6f502cc07d
parente94f5819448c5b75829662eaa9c25c17868846cf
block: don't handle bio based drivers in blk_revalidate_disk_zones

bio based drivers only need to update q->nr_zones.  Do that manually
instead of overloading blk_revalidate_disk_zones to keep that function
simpler for the next round of changes that will rely even more on the
request based functionality.

Reviewed-by: Javier González <javier@javigon.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-zoned.c
drivers/block/null_blk_main.c
drivers/md/dm-table.c
include/linux/blkdev.h