During work for a recent fix in libata-scsi [1], we checked which commands ZBC, or Zoned Block Commands specification, mandates for zoned block devices. We found two points to improve and this series has two patches to address them. The first patch improves READ/WRITE (16) command enforcement. ZBC does not mandate these commands to host-aware zoned block devices but current code in sd_zbc_read_zones() assumes it. The second patch improves SYNCHRONIZE CACHE (16) command enforcement. ZBC mandates it for host-managed zoned block devices, and it should call it in place of SYNCHRONIZE CACHE (10). Of note is that the second patch depends on the libata-scsi fix [1], and should be merged to upstream after it. [1] https://lore.kernel.org/linux-ide/20221107040229.1548793-1-shinichiro.kawasaki@xxxxxxx/ Shin'ichiro Kawasaki (2): scsi: sd_zbc: do not enforce READ/WRITE (16) on host-aware devices scsi: sd: enforce SYNCHRONIZE CACHE (16) on host-managed devices drivers/scsi/sd.c | 16 ++++++++++++---- drivers/scsi/sd_zbc.c | 9 ++++++--- include/scsi/scsi_device.h | 1 + 3 files changed, 19 insertions(+), 7 deletions(-) -- 2.37.1