Skip to content

Support zoned devices with gap zones

Bart Van Assche linux-scsi 2 versions – Applied

Status from this message: Applied to 5.19/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 9 repliesApplied
  2. v18 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Made this patch series compatible with the zone querying code in BTRFS.
- Addressed Damien's off-list review comments.
- Added patch "Return early in sd_zbc_check_zoned_characteristics()" to this series.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/9scsi: sd_zbc: Improve source code documentationdrivers/scsi/sd.h drivers/scsi/sd_zbc.c+54 -61 reply
2/9scsi: sd_zbc: Verify that the zone size is a power of twodrivers/scsi/sd_zbc.c+7 -01 reply
3/9scsi: sd_zbc: Use logical blocks as unit when querying zonesdrivers/scsi/sd_zbc.c+5 -61 reply
4/9scsi: sd_zbc: Introduce struct zoned_disk_infodrivers/scsi/sd.h drivers/scsi/sd_zbc.c+41 -301 reply
5/9scsi: sd_zbc: Return early in sd_zbc_check_zoned_characteristics()drivers/scsi/sd_zbc.c+7 -61 reply
6/9scsi: sd_zbc: Hide gap zonesdrivers/scsi/sd.h drivers/scsi/sd_zbc.c include/scsi/scsi_proto.h+105 -140 replies
7/9scsi_debug: Fix a typodrivers/scsi/scsi_debug.c+1 -11 reply
8/9scsi_debug: Rename zone type constantsdrivers/scsi/scsi_debug.c+9 -90 replies
9/9scsi_debug: Add gap zone supportdrivers/scsi/scsi_debug.c+104 -250 replies

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDamien Le MoalHimanshu MadhaniDouglas Gilbert
SeriesA-b
1/9R-b R-b
2/9R-b R-b
3/9R-b
4/9R-b R-b
5/9R-b
6/9
7/9R-b R-b
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/9] Support zoned devices with gap zones

Hi Martin,

In ZBC-2 support has been improved for zones with a size that is not a power of two by allowing host-managed devices to report gap zones. This patch adds support for zoned devices for which data zones and gap zones alternate if the distance between zone start LBAs is a power of two.

Please consider this patch series for kernel v5.19.

Thanks,

Bart.

Changes compared to v1:
- Made this patch series compatible with the zone querying code in BTRFS.
- Addressed Damien's off-list review comments.
- Added patch "Return early in sd_zbc_check_zoned_characteristics()" to this series.

Bart Van Assche (9):
scsi: sd_zbc: Improve source code documentation
scsi: sd_zbc: Verify that the zone size is a power of two
scsi: sd_zbc: Use logical blocks as unit when querying zones
scsi: sd_zbc: Introduce struct zoned_disk_info
scsi: sd_zbc: Return early in sd_zbc_check_zoned_characteristics()
scsi: sd_zbc: Hide gap zones
scsi_debug: Fix a typo
scsi_debug: Rename zone type constants
scsi_debug: Add gap zone support

 drivers/scsi/scsi_debug.c | 149 ++++++++++++++++++------
 drivers/scsi/sd.h         |  32 ++++--
 drivers/scsi/sd_zbc.c     | 236 +++++++++++++++++++++++++++++---------
 include/scsi/scsi_proto.h |   9 +-
 4 files changed, 331 insertions(+), 95 deletions(-)