Skip to content

block for-7.1/integrity rebase for mem alignment

Keith Busch linux-block 8 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. v8 Latest2 patches 7 repliesApplied
  2. v7 posting 2/21 patch 1 replyApplied
  3. v7 posting 1/21 patch 4 repliesSuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v61 patch10 repliesSuperseded
v41 patch10 repliesSuperseded
v31 patch3 repliesSuperseded
v21 patch3 repliesSuperseded
v1 RFC1 patch5 repliesSuperseded

Patches in v8 Applied

#Subject and filesSizeRepliesApplied
1/2blk-integrity: support arbitrary buffer alignmentblock/blk-settings.c block/t10-pi.c drivers/nvme/host/core.c +1 more+465 -3650 replies
2/2ublk: report BLK_SPLIT_INTERVAL_CAPABLEdrivers/block/ublk_drv.c+1 -10 replies

Reviews trailers per patch

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

PatchMing LeiKeith BuschMartin K. PetersenChristoph Hellwig
1/2R-b R-b
2/2R-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 v8 thread

Cover letter [PATCHv8 0/2] block for-7.1/integrity rebase for mem alignment

From: Keith Busch <[email protected]>

This is the rebased version of the flexible t10 alignment feature on top of block's for-7.1/block-integrity branch to apply atop Christoph's fs-integrity:

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

The only change from the previous version is to incorporate the function name changes and verify's status code return type that were introduced in the file system integrity support patch set.

I've also included the ublk support for this feature since it was previously accepted and has a dependency on patch 1.

For reference, here is the resulting diff from the previous version's implementation before fs-integrity to this new one after fs support:

---

t10-pi.c renamed from t10-pi.c.orig +8 -7
@@ -304,7 +304,8 @@
 	return ret;
 }
 
-static void blk_integrity_iterate(struct bio *bio, struct bvec_iter *data_iter,
+static blk_status_t blk_integrity_iterate(struct bio *bio,
+					  struct bvec_iter *data_iter,
 				  bool verify)
 {
 	struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk);
@@ -342,11 +343,10 @@
 		kunmap_local(kaddr);
 	}
 
-	if (ret)
-		bio->bi_status = ret;
+	return ret;
 }
 
-void blk_integrity_generate(struct bio *bio)
+void bio_integrity_generate(struct bio *bio)
 {
 	struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk);
 
@@ -361,7 +361,7 @@
 	}
 }
 
-void blk_integrity_verify_iter(struct bio *bio, struct bvec_iter *saved_iter)
+blk_status_t bio_integrity_verify(struct bio *bio, struct bvec_iter *saved_iter)
 {
 	struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk);
 
@@ -369,11 +369,12 @@
 	case BLK_INTEGRITY_CSUM_CRC64:
 	case BLK_INTEGRITY_CSUM_CRC:
 	case BLK_INTEGRITY_CSUM_IP:
-		blk_integrity_iterate(bio, saved_iter, true);
-		break;
+		return blk_integrity_iterate(bio, saved_iter, true);
 	default:
 		break;
 	}
+
+	return BLK_STS_OK;
 }
 
 /*

--

Caleb Sander Mateos (1):
ublk: report BLK_SPLIT_INTERVAL_CAPABLE

Keith Busch (1):
blk-integrity: support arbitrary buffer alignment

 block/blk-settings.c          |  12 +-
 block/t10-pi.c                | 816 +++++++++++++++++++---------------
 drivers/block/ublk_drv.c      |   2 +-
 drivers/nvme/host/core.c      |   1 +
 include/linux/blk-integrity.h |   1 +
 5 files changed, 466 insertions(+), 366 deletions(-)
Signature · 1 line
2.52.0