Damien,
To solve this, introduce the zone_write_granularity queue limit to
indicate the alignment constraint, in bytes, of write operations into
zones of a zoned block device. This new limit is exported as a
read-only sysfs queue attribute and the helper
blk_queue_zone_write_granularity() introduced for drivers to set this
limit. The scsi disk driver is modified to use this helper to set
host-managed SMR disk zone write granularity to the disk physical
block size. The ZNS support code of the NVMe driver is also modified
to use this helper to set the new limit to the logical block size of
the namespace. The nullblk driver is similarly modified too.
Looks fine.
Reviewed-by: Martin K. Petersen <redacted>
--
Martin K. Petersen Oracle Linux Engineering