Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751258AbdIKOlT (ORCPT ); Mon, 11 Sep 2017 10:41:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36567 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750807AbdIKOlS (ORCPT ); Mon, 11 Sep 2017 10:41:18 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com BDA00C0B73E6 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=msnitzer@redhat.com Date: Mon, 11 Sep 2017 10:41:11 -0400 From: Mike Snitzer To: Dan Williams Cc: kbuild test robot , linux-nvdimm@lists.01.org, linux-kernel@vger.kernel.org, dm-devel@redhat.com, Bart Van Assche , Alasdair Kergon Subject: Re: [PATCH v3 2/2] dm: allow device-mapper to operate without dax support Message-ID: <20170911144111.GA15556@redhat.com> References: <150169667935.39569.15808116323143633486.stgit@dwillia2-desk3.amr.corp.intel.com> <150169668989.39569.8174620146135008137.stgit@dwillia2-desk3.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <150169668989.39569.8174620146135008137.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 11 Sep 2017 14:41:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1380 Lines: 31 On Wed, Aug 02 2017 at 1:58pm -0400, Dan Williams wrote: > Rather than have device-mapper directly 'select DAX', let the fact that > BLK_DEV_PMEM selects dax act as a gate for the device-mapper dax > support. We arrange for all the dax core routines to compile to nops > when CONFIG_DAX=n. With that in place we can simply handle the > alloc_dax() error as expected and ifdef out the other device-mapper-dax > support code. > > Now, if dax is provided by a leaf driver that driver may only arrange to > compile the dax core as a module. Since device-mapper dax support is > consumed by the always-built-in portion of the device-mapper > implementation we need to upgrade from DAX=m to DAX=y. I applied the patches and then got nervous once I dug in.. this last paragraph makes little sense to me. "the always-built-in portion of the device-mapper implementation" is why: DM core can happily be compiled as a module (dm-mod.ko). And I'm not sure why you're referencing DAX related drivers/md/dm-builtin.c, why are you attachd DM's DAX support to that? I'm not seeing where that is actually happening. I don't see why DM's support for DAX would need to force DAX to be builtin rather than just a module. Sorry I didn't get around to looking at this until now, but it seems you went wrong along the way? Or maybe I'm just missing something? Mike