diff mbox series

dm-ebs: don't set the flag DM_TARGET_PASSES_INTEGRITY

Message ID 0f3156b2-af3c-9276-9158-af43fcebe3b7@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: Mikulas Patocka
Headers show
Series dm-ebs: don't set the flag DM_TARGET_PASSES_INTEGRITY | expand

Commit Message

Mikulas Patocka Jan. 7, 2025, 4:47 p.m. UTC
dm-ebs uses dm-bufio to process requests that are not aligned on logical
sector size. dm-bufio doesn't support passing integrity data (and it is
unclear how should it do it), so we shouldn't set the
DM_TARGET_PASSES_INTEGRITY flag.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Fixes: d3c7b35c20d6 ("dm: add emulated block size target")

---
 drivers/md/dm-ebs-target.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

Index: linux-2.6/drivers/md/dm-ebs-target.c
===================================================================
--- linux-2.6.orig/drivers/md/dm-ebs-target.c	2024-07-30 14:06:48.000000000 +0200
+++ linux-2.6/drivers/md/dm-ebs-target.c	2025-01-03 17:49:32.000000000 +0100
@@ -442,7 +442,7 @@  static int ebs_iterate_devices(struct dm
 static struct target_type ebs_target = {
 	.name		 = "ebs",
 	.version	 = {1, 0, 1},
-	.features	 = DM_TARGET_PASSES_INTEGRITY,
+	.features	 = 0,
 	.module		 = THIS_MODULE,
 	.ctr		 = ebs_ctr,
 	.dtr		 = ebs_dtr,