]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Fri, 17 Jan 2025 12:34:41 +0000 (13:34 +0100)
commitc0dde4a52b8438e5266027e76dc9cbbe806d301b
treebfb9601e92b31c1add594ffa0a2b67c7a3bdbe36
parent12771050b6d059eea096993bf2001da9da9fddff
dm-ebs: don't set the flag DM_TARGET_PASSES_INTEGRITY

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