Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752743AbdHAVFk (ORCPT ); Tue, 1 Aug 2017 17:05:40 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:31382 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752652AbdHAVFh (ORCPT ); Tue, 1 Aug 2017 17:05:37 -0400 X-IronPort-AV: E=Sophos;i="5.41,308,1498492800"; d="scan'208";a="38236348" From: Bart Van Assche To: "dan.j.williams@intel.com" , "snitzer@redhat.com" CC: "dm-devel@redhat.com" , "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" , "agk@redhat.com" Subject: Re: dm: enable opt-out of device-mapper dax support Thread-Topic: dm: enable opt-out of device-mapper dax support Thread-Index: AQHTCvjSnA1K10E1v0K8tJsNTblsKaJv52aAgAAU0gCAAAF4gA== Date: Tue, 1 Aug 2017 21:04:52 +0000 Message-ID: <1501621491.2475.20.camel@wdc.com> References: <150161113411.34055.9762658795237184307.stgit@dwillia2-desk3.amr.corp.intel.com> <20170801190257.GA10033@redhat.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Bart.VanAssche@wdc.com; x-originating-ip: [63.163.107.100] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR0401MB1534;20:Ca8jEGdszNPDqv8xL5R1w/fLpdjR2nJgysLyzuBtDLItdcXH6XY1vwM89KbhBkidtUDylm8BbS4cXv1zrOC98XAF6A+bi6G1wuBFO4DYvd0Fa8nJlX027Y2rGbKUDKeBSigkCTKtAI4uewy+Vw4mGVK9cGci8dWFWoDlgI5CKe0= x-ms-office365-filtering-correlation-id: 86bee88c-ed10-483a-9559-08d4d920f46f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:CY1PR0401MB1534; x-ms-traffictypediagnostic: CY1PR0401MB1534: wdcipoutbound: EOP-TRUE x-exchange-antispam-report-test: UriScan:(228905959029699); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123560025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR0401MB1534;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR0401MB1534; x-forefront-prvs: 0386B406AA x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39400400002)(39860400002)(39840400002)(39850400002)(39450400003)(39410400002)(189002)(199003)(377424004)(377454003)(24454002)(51444003)(105586002)(6506006)(101416001)(106356001)(5660300001)(2906002)(3280700002)(3660700001)(33646002)(8936002)(77096006)(76176999)(54356999)(229853002)(50986999)(81156014)(81166006)(8676002)(4326008)(2900100001)(6486002)(14454004)(103116003)(7736002)(97736004)(2950100002)(305945005)(66066001)(189998001)(2501003)(99286003)(6436002)(6512007)(36756003)(3846002)(54906002)(478600001)(53936002)(72206003)(25786009)(6246003)(6116002)(53546010)(102836003)(68736007)(38730400002)(93886004)(86362001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0401MB1534;H:CY1PR0401MB1536.namprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2017 21:04:52.6873 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0401MB1534 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v71L5skq028317 Content-Length: 1583 Lines: 38 On Tue, 2017-08-01 at 13:59 -0700, Dan Williams wrote: > On Tue, Aug 1, 2017 at 12:45 PM, Dan Williams wrote: > > On Tue, Aug 1, 2017 at 12:02 PM, Mike Snitzer wrote: > > > On Tue, Aug 01 2017 at 2:12pm -0400, > > > Dan Williams wrote: > > > > [ ... ] > > > > > > I'm questioning the need to have yet another Kbuild CONFIG option. If > > > the user has enabled CONFIG_BLK_DEV_PMEM and CONFIG_FS_DAX (DAX already > > > gets selected by CONFIG_FS_DAX) then shouldn't the DM capabilities just > > > be enabled? > > > > > > Guess I'm just skeptical of: why do we want to move to a model where > > > users need to opt-in to DM support for DAX? > > > > > > I also _really_ don't like each target's DAX support being colocated in > > > drivers/md/dm-dax.c > > > > > > This all looks and feels like a serious step backwards. > > > > Ok, you want ifdef'd sections of DAX code in each target and make > > DM_DAX a silent option that gets enabled with BLK_DEV_PMEM, anything > > else? > > Actually, no, I was thrown off by Bart's suggestion to move code > around. I can handle this all by deleting "select DAX" and adding more > stubbed out dax helpers. Hello Mike and Dan, How about one *-dax.c file per *.c dm file that has to be modified to add DAX support? I think that approach would avoid collocation of code for different targets in a single dm-dax.c file and would also avoid that #ifdef CONFIG_DAX statements have to be added. This approach is orthogonal to removal of CONFIG_DM_DAX. Thanks, Bart.