]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dm-ebs: don't set the flag DM_TARGET_PASSES_INTEGRITY
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 7 Jan 2025 16:47:01 +0000 (17:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Feb 2025 17:22:20 +0000 (18:22 +0100)
commit 47f33c27fc9565fb0bc7dfb76be08d445cd3d236 upstream.

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")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-ebs-target.c

index cb85610527c2ca29fa484ea43f1aa9912d2c8323..f6e142934b7777b5c57439cacbeb121c1c1b6f0c 100644 (file)
@@ -437,7 +437,7 @@ static int ebs_iterate_devices(struct dm_target *ti,
 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,