Skip to content

Commit d916e45

Browse files
steffen-maiergregkh
authored andcommitted
dm mpath: fix passing integrity data
commit 8c5c147 upstream. After v4.12 commit e2460f2 ("dm: mark targets that pass integrity data"), dm-multipath, e.g. on DIF+DIX SCSI disk paths, does not support block integrity any more. So add it to the whitelist. This is also a pre-requisite to use block integrity with other dm layer(s) on top of multipath, such as kpartx partitions (dm-linear) or LVM. Also, bump target version to reflect this fix. Fixes: e2460f2 ("dm: mark targets that pass integrity data") Cc: <stable@vger.kernel.org> #4.12+ Bisected-by: Fedor Loshakov <loshakov@linux.vnet.ibm.com> Signed-off-by: Steffen Maier <maier@linux.vnet.ibm.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent dbacf55 commit d916e45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/md/dm-mpath.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,8 +1941,9 @@ static int multipath_busy(struct dm_target *ti)
19411941
*---------------------------------------------------------------*/
19421942
static struct target_type multipath_target = {
19431943
.name = "multipath",
1944-
.version = {1, 12, 0},
1945-
.features = DM_TARGET_SINGLETON | DM_TARGET_IMMUTABLE,
1944+
.version = {1, 13, 0},
1945+
.features = DM_TARGET_SINGLETON | DM_TARGET_IMMUTABLE |
1946+
DM_TARGET_PASSES_INTEGRITY,
19461947
.module = THIS_MODULE,
19471948
.ctr = multipath_ctr,
19481949
.dtr = multipath_dtr,

0 commit comments

Comments
 (0)