diff options
author | Damien Le Moal <dlemoal@kernel.org> | 2023-07-03 05:48:11 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-07-06 04:58:10 +0300 |
commit | a3d96ed21507e8d70ddab6c7abc93d5e56aaeeb0 (patch) | |
tree | f13257e42aa67984a413638bd943c49e2e5c0190 /block/blk-pm.c | |
parent | a442b899fe17118e672647f664bf7f1dd5d7fcb0 (diff) | |
download | linux-a3d96ed21507e8d70ddab6c7abc93d5e56aaeeb0.tar.xz |
scsi: block: virtio_blk: Set zone limits before revalidating zones
In virtblk_probe_zoned_device(), execute blk_queue_chunk_sectors() and
blk_queue_max_zone_append_sectors() to respectively set the zoned device
zone size and maximum zone append sector limit before executing
blk_revalidate_disk_zones(). This is to allow the block layer zone
reavlidation to check these device characteristics prior to checking all
zones of the device.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/20230703024812.76778-5-dlemoal@kernel.org
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'block/blk-pm.c')
0 files changed, 0 insertions, 0 deletions