Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp313764yba; Wed, 15 May 2019 01:40:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPhR0ujOjikKPu82mSAOOgz8DjWwfOyiWruZCyaGyb10gS7VpphA6JyF8H2ZQO8cwUZTNW X-Received: by 2002:a63:471d:: with SMTP id u29mr43221376pga.39.1557909601533; Wed, 15 May 2019 01:40:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557909601; cv=none; d=google.com; s=arc-20160816; b=X9OlTRR9prCNBM3lHScowRMzu57akgQKEQ7bNUR/AJwngsCrOpVAKi0ieP3FGa0eqz Awl4YgEGtWw7d3kXvf5uV6tTr+EX9WD3/S1qHUbh2LeDDCM0qlN0AGisE6mo00+EYTHO sYUosi7bDYtS7fd5RL22uNZm2Kp+x7VtPAycKrjSSUCdSgrAVdej7bxQRmBTjFL4Iq4v jkNE7yZqBWHFG1cnoi7g9U56891Jp98DFZo7UTKkaBzyxSekDJo/CSPtFDktVkgL83Hf RkKIUAIXaS5HsLspHEMV2ZKACgfZVcbosqyb0d/OPi28gBcQKGSGKy62a/fUZCTOU0N+ 5cLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=DH3GdA6OT3jOehIJhhaGPrmhGPWu+XcJFDDuOTRGZ3g=; b=ZNFJdWFloRpq95ufLMpv8inf9ZGahlUVt8mhxFcMrhHcJ26BSiNEZOHgko44gs+Ut+ dFY+UX0AKxaolX9oLPHvlyO5ailvL97q4b7/GRgV4qoKrjNkZ1+LsFVv/TmDV2vmyiUC tJx1FpvJ4MI2k6t/5kGcLBS+a8NVU1ZGo4z0LN+SXwYzPwuE/pjWCOn4+yK2uFTP3eoF 2ESaV3I0PTPT0FhP4QOyR8ohjbmYSejFKeC7kJb7gfqFAdYgsfZhpwKxWEAXEX/2Jspr b9vvIQLWJY8xVRrpv0lVg0uhm+PQimegylxzFPP8dE252jg5MBLupVIuLvuBpsV9naGm RC5w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o6si1263259pgd.365.2019.05.15.01.39.47; Wed, 15 May 2019 01:40:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726425AbfEOIiH (ORCPT + 99 others); Wed, 15 May 2019 04:38:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39098 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725933AbfEOIiH (ORCPT ); Wed, 15 May 2019 04:38:07 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DF0FB59454; Wed, 15 May 2019 08:38:06 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CB90F64422; Wed, 15 May 2019 08:38:06 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A90F818089C9; Wed, 15 May 2019 08:38:06 +0000 (UTC) Date: Wed, 15 May 2019 04:38:06 -0400 (EDT) From: Pankaj Gupta To: Dan Williams Cc: snitzer@redhat.com, stable@vger.kernel.org, Jan Kara , Ira Weiny , Dave Jiang , Keith Busch , Matthew Wilcox , Vishal Verma , Heiko Carstens , Martin Schwidefsky , linux-fsdevel@vger.kernel.org, linux-nvdimm@lists.01.org, dm-devel@redhat.com, linux-kernel@vger.kernel.org Message-ID: <34965939.28870107.1557909486195.JavaMail.zimbra@redhat.com> In-Reply-To: <155789172402.748145.11853718580748830476.stgit@dwillia2-desk3.amr.corp.intel.com> References: <155789172402.748145.11853718580748830476.stgit@dwillia2-desk3.amr.corp.intel.com> Subject: Re: [PATCH] dax: Arrange for dax_supported check to span multiple devices MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.65.16.80, 10.4.195.16] Thread-Topic: Arrange for dax_supported check to span multiple devices Thread-Index: DFYzSsTeR2lh7L09oG6Kp02APnkUKQ== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 15 May 2019 08:38:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Pankaj reports that starting with commit ad428cdb525a "dax: Check the > end of the block-device capacity with dax_direct_access()" device-mapper > no longer allows dax operation. This results from the stricter checks in > __bdev_dax_supported() that validate that the start and end of a > block-device map to the same 'pagemap' instance. > > Teach the dax-core and device-mapper to validate the 'pagemap' on a > per-target basis. This is accomplished by refactoring the > bdev_dax_supported() internals into generic_fsdax_supported() which > takes a sector range to validate. Consequently generic_fsdax_supported() > is suitable to be used in a device-mapper ->iterate_devices() callback. > A new ->dax_supported() operation is added to allow composite devices to > split and route upper-level bdev_dax_supported() requests. > > Fixes: ad428cdb525a ("dax: Check the end of the block-device...") > Cc: > Cc: Jan Kara > Cc: Ira Weiny > Cc: Dave Jiang > Cc: Mike Snitzer > Cc: Keith Busch > Cc: Matthew Wilcox > Cc: Vishal Verma > Cc: Heiko Carstens > Cc: Martin Schwidefsky > Reported-by: Pankaj Gupta > Signed-off-by: Dan Williams Thank you for the patch. Looks good to me. I also tested the patch and it works well. Reviewed-and-Tested-by: Pankaj Gupta Best regards, Pankaj