Received: by 10.213.65.68 with SMTP id h4csp469063imn; Fri, 16 Mar 2018 08:41:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELti8wYkU2+3kalz3DlqcnmYJ/9dt1s+LscCCPPMNl0LBgqaJzDa+86JJ8OEyHoGAjJUmhSv X-Received: by 2002:a17:902:60c4:: with SMTP id k4-v6mr2640082pln.44.1521214898556; Fri, 16 Mar 2018 08:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521214898; cv=none; d=google.com; s=arc-20160816; b=YNWbPCX4SvDHiByQhwuYdMmrA8c0TUdMEcYldqvXG+g9hD4xtgXTl3wEDpn9MEdakx avcJIXQbaX3MTT16RK9U5F5DFi6cGgYUhJjJEv5m6xiQM8qbUDPaP0MrDz77wxkmpFVm w/d3sXrXo7fMYKVYCK71FN3aZPs+LTyJOQ49k7fAWlTSpcUXWIT9kves69RkJDpDr1hn Rtz02DajIDrB0qv70de1Rwvu6oS122HeJzVx/lJS60SLA4jMkRqRCBqrSQhgjZ9pPOX5 JD3Lho4BvfKySyKwOGEN4eJs3epL+m/IUm1WAwLgRWmp8RytQFvYSBi2dB8anELABTWe 3qcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=EnlbDRM+n7d0Q9hUYvXVlbpCECgTvNKOrTJAd9/dolo=; b=YgUOnHZru6Zf7dRXkoOLvaj443c89TocwdbexgCmMLz/OzO1UuZlRq0LuNus5LZpIY 4yNz58NmwPdFn2Z3680ow0HHgbu9zpAoN/Q50xkQj6NaCK8PAXHiY/CcnJn7jlWSlUsl iBD2O3D37yJ5lpFxc5T9o20x6NTGjjZzs7d9c/jjuYIK7jXLfbxGEfb+9jPRrxhjsf2x BlZ4nyCmrjfkNgWvKqpfR+oWyuUY5YuZg/l+rIuW1/vQjhsXXALE7Mjne88r3+DPXn5S OMUOJBYy3CHOPp2iyZwYXraPQ3r6S1kQhek1igMwtYxj1jjco8kdqVltTJIKS+C7mQ4m YSmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si5684503pfl.176.2018.03.16.08.41.24; Fri, 16 Mar 2018 08:41:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964992AbeCPPkH (ORCPT + 99 others); Fri, 16 Mar 2018 11:40:07 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:43464 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934286AbeCPPkE (ORCPT ); Fri, 16 Mar 2018 11:40:04 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1F0A8D73; Fri, 16 Mar 2018 15:40:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steffen Maier , Hannes Reinecke , "Martin K. Petersen" , Mike Snitzer Subject: [PATCH 4.15 024/128] dm mpath: fix passing integrity data Date: Fri, 16 Mar 2018 16:22:45 +0100 Message-Id: <20180316152337.711806161@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152336.199007505@linuxfoundation.org> References: <20180316152336.199007505@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Steffen Maier commit 8c5c147339d2e201108169327b1f99aa6d57d2cd upstream. 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. Also, bump target version to reflect this fix. Fixes: e2460f2a4bc7 ("dm: mark targets that pass integrity data") Cc: #4.12+ Bisected-by: Fedor Loshakov Signed-off-by: Steffen Maier Reviewed-by: Hannes Reinecke Reviewed-by: Martin K. Petersen Signed-off-by: Mike Snitzer Signed-off-by: Greg Kroah-Hartman --- drivers/md/dm-mpath.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -1968,8 +1968,9 @@ static int multipath_busy(struct dm_targ *---------------------------------------------------------------*/ static struct target_type multipath_target = { .name = "multipath", - .version = {1, 12, 0}, - .features = DM_TARGET_SINGLETON | DM_TARGET_IMMUTABLE, + .version = {1, 13, 0}, + .features = DM_TARGET_SINGLETON | DM_TARGET_IMMUTABLE | + DM_TARGET_PASSES_INTEGRITY, .module = THIS_MODULE, .ctr = multipath_ctr, .dtr = multipath_dtr,