public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] scsi: sd: use READ/WRITE/SYNC (16) commands per ZBC
@ 2022-11-09  2:59 Shin'ichiro Kawasaki
  2022-11-09  2:59 ` [PATCH 1/2] scsi: sd_zbc: do not enforce READ/WRITE (16) on host-aware devices Shin'ichiro Kawasaki
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Shin'ichiro Kawasaki @ 2022-11-09  2:59 UTC (permalink / raw)
  To: linux-scsi, Martin K . Petersen
  Cc: Damien Le Moal, Dmitry Fomichev, Shin'ichiro Kawasaki

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@wdc.com/

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-11-14 10:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-09  2:59 [PATCH 0/2] scsi: sd: use READ/WRITE/SYNC (16) commands per ZBC Shin'ichiro Kawasaki
2022-11-09  2:59 ` [PATCH 1/2] scsi: sd_zbc: do not enforce READ/WRITE (16) on host-aware devices Shin'ichiro Kawasaki
2022-11-09  5:17   ` Damien Le Moal
2022-11-09  2:59 ` [PATCH 2/2] scsi: sd: enforce SYNCHRONIZE CACHE (16) on host-managed devices Shin'ichiro Kawasaki
2022-11-09  5:18   ` Damien Le Moal
2022-11-09 12:36 ` [PATCH 0/2] scsi: sd: use READ/WRITE/SYNC (16) commands per ZBC Christoph Hellwig
2022-11-10  2:20   ` Shinichiro Kawasaki
2022-11-10  8:19     ` hch
2022-11-10  8:31       ` Damien Le Moal
2022-11-14 10:58         ` Shinichiro Kawasaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox