From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx3-rdu2.redhat.com ([66.187.233.73]:32930 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751348AbeCNToE (ORCPT ); Wed, 14 Mar 2018 15:44:04 -0400 Date: Wed, 14 Mar 2018 15:44:01 -0400 From: Mike Snitzer To: Steffen Maier Cc: dm-devel@redhat.com, Mikulas Patocka , linux-block@vger.kernel.org, "Martin K . Petersen" , Hannes Reinecke , linux-s390@vger.kernel.org, Martin Schwidefsky , Heiko Carstens , Fedor Loshakov Subject: Re: dm mpath: fix passing integrity data Message-ID: <20180314194401.GA9609@redhat.com> References: <20180314143306.98405-1-maier@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180314143306.98405-1-maier@linux.vnet.ibm.com> Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On Wed, Mar 14 2018 at 10:33am -0400, Steffen Maier wrote: > After v4.12 commit e2460f2a4bc7 ("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. > > Signed-off-by: Steffen Maier > Bisected-by: Fedor Loshakov > Fixes: e2460f2a4bc7 ("dm: mark targets that pass integrity data") > Cc: #4.12+ > --- > drivers/md/dm-mpath.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c > index 3fde9e9faddd..c174f0c53dc9 100644 > --- a/drivers/md/dm-mpath.c > +++ b/drivers/md/dm-mpath.c > @@ -2023,7 +2023,8 @@ static int multipath_busy(struct dm_target *ti) > static struct target_type multipath_target = { > .name = "multipath", > .version = {1, 12, 0}, > - .features = DM_TARGET_SINGLETON | DM_TARGET_IMMUTABLE, > + .features = DM_TARGET_SINGLETON | DM_TARGET_IMMUTABLE | > + DM_TARGET_PASSES_INTEGRITY, > .module = THIS_MODULE, > .ctr = multipath_ctr, > .dtr = multipath_dtr, Thanks, I've queued this for 4.16-rc6, will send to Linus tomorrow.