[PATCH 0/5] Improve checks in blk_revalidate_disk_zones()

Damien Le Moal
2023-06-29T06:26:13Z

This series slightly modifies the 4 block device drivers that support
zoned block devices to ensure that they all call
blk_revalidate_disk_zones() with the zone size and max zone append
limits set. This is done in the first 4 patches.

With these changes, the last patch improves blk_revalidate_disk_zones()
to better check a zoned device zones and the device limits.

Damien Le Moal (5):
scsi: sd_zbc: Set zone limits before revalidating zones
nvme: zns: Set zone limits before revalidating zones
block: nullblk: Set zone limits before revalidating zones
block: virtio_blk: Set zone limits before revalidating zones
block: improve checks in blk_revalidate_disk_zones()

block/blk-zoned.c | 99 +++++++++++++++++++++-------------
drivers/block/null_blk/zoned.c | 21 +++-----
drivers/block/virtio_blk.c | 35 ++++++------
drivers/nvme/host/zns.c | 9 ++--
drivers/scsi/sd_zbc.c | 12 ++---
5 files changed, 96 insertions(+), 80 deletions(-)

--
2.41.0