block: inherit the zoned characteristics in blk_stack_limits
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Jul 2020 06:12:49 +0000 (08:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Jul 2020 21:38:52 +0000 (15:38 -0600)
commit3093a479727be194996dbc40f803711af5877be4
tree7b85597ee0028fc4cc5962eb416f21a09da39f90
parent4f43d648078a754aefe6a4de233ebb6e4d192aa6
block: inherit the zoned characteristics in blk_stack_limits

Lift the code from device mapper into blk_stack_limits to inherity
the stacking limitations.  This ensures we do the right thing for
all stacked zoned block devices.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-settings.c
drivers/md/dm-table.c
include/linux/blkdev.h