mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
block: use blk_queue_set_zoned in add_partition()
When changing the zoned model of host-aware zoned block devices, use blk_queue_set_zoned() instead of directly assigning the gendisk queue zoned limit. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@edc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
5752dc78a1
commit
eafc63a9f7
@@ -334,7 +334,7 @@ static struct block_device *add_partition(struct gendisk *disk, int partno,
|
|||||||
case BLK_ZONED_HA:
|
case BLK_ZONED_HA:
|
||||||
pr_info("%s: disabling host aware zoned block device support due to partitions\n",
|
pr_info("%s: disabling host aware zoned block device support due to partitions\n",
|
||||||
disk->disk_name);
|
disk->disk_name);
|
||||||
disk->queue->limits.zoned = BLK_ZONED_NONE;
|
blk_queue_set_zoned(disk, BLK_ZONED_NONE);
|
||||||
break;
|
break;
|
||||||
case BLK_ZONED_NONE:
|
case BLK_ZONED_NONE:
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user