Skip to content

Block integrity with flexible-offset PI

Kanchan Joshi linux-block linux-nvme 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 12 repliesApplied
  2. v13 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Reworded commit messsage in patch 2 and 3 (hch)
- Variable initialization order change (hch)
- Collect reviewed-by

[1] https://lore.kernel.org/linux-block/[email protected]/

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3block: refactor guard helpersblock/t10-pi.c+10 -100 replies
2/3block: support PI at non-zero offset within metadatablock/bio-integrity.c block/blk-integrity.c block/t10-pi.c +2 more+42 -1410 replies
3/3nvme: allow integrity when PI is not in first bytesdrivers/nvme/host/core.c drivers/nvme/host/nvme.h+8 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSagi GrimbergChristoph HellwigKeith BuschMartin K. Petersen
1/3R-b R-b R-b R-b
2/3R-b R-b
3/3R-b R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/3] Block integrity with flexible-offset PI

The block integrity subsystem can only work with PI placed in the first bytes of the metadata buffer.

The series makes block-integrity support the flexible placement of PI. And changes NVMe driver to make use of the new capability.

This helps to
(i) enable the more common case for NVMe (PI in last bytes is the norm) (ii) reduce nop profile users (tried by Jens recently [1]).

/* For NS 4K+16b, 8b PI, last bytes */
Before:

# cat /sys/block/nvme0n1/integrity/format
nop

After:

# cat /sys/block/nvme0n1/integrity/format
T10-DIF-TYPE1-CRC

Changes since v1:
- Reworded commit messsage in patch 2 and 3 (hch)
- Variable initialization order change (hch)
- Collect reviewed-by

[1] https://lore.kernel.org/linux-block/[email protected]/

Kanchan Joshi (3):
block: refactor guard helpers
block: support PI at non-zero offset within metadata
nvme: allow integrity when PI is not in first bytes

 block/bio-integrity.c         |  1 +
 block/blk-integrity.c         |  1 +
 block/t10-pi.c                | 72 +++++++++++++++++++++++------------
 drivers/nvme/host/core.c      |  8 +++-
 drivers/nvme/host/nvme.h      |  1 +
 include/linux/blk-integrity.h |  1 +
 include/linux/blkdev.h        |  1 +
 7 files changed, 60 insertions(+), 25 deletions(-)
Signature · 1 line
2.25.1