Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752671AbdHBSEZ (ORCPT ); Wed, 2 Aug 2017 14:04:25 -0400 Received: from mga05.intel.com ([192.55.52.43]:29891 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752183AbdHBSEY (ORCPT ); Wed, 2 Aug 2017 14:04:24 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,312,1498546800"; d="scan'208";a="118798447" Subject: [PATCH v3 0/2] dax, dm: stop requiring dax for device-mapper From: Dan Williams To: snitzer@redhat.com Cc: kbuild test robot , linux-nvdimm@lists.01.org, Michael Ellerman , Heiko Carstens , linux-kernel@vger.kernel.org, Martin Schwidefsky , dm-devel@redhat.com, Paul Mackerras , Alasdair Kergon , Benjamin Herrenschmidt , Bart Van Assche , Gerald Schaefer Date: Wed, 02 Aug 2017 10:57:59 -0700 Message-ID: <150169667935.39569.15808116323143633486.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.17.1-9-g687f MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1301 Lines: 35 Changes since v2 [1]: * rebase on -next to integrate with commit 273752c9ff03 "dm, dax: Make sure dm_dax_flush() is called if device supports it" (kbuild robot) * fix CONFIG_DAX dependencies to upgrade CONFIG_DAX=m to CONFIG_DAX=y (kbuild robot) [1]: https://www.spinics.net/lists/kernel/msg2570522.html --- Bart points out that the DAX core is unconditionally enabled if device-mapper is enabled. Add some config machinery and some stub-static-inline routines to allow dax infrastructure to be deleted from device-mapper at compile time. Since this depends on commit 273752c9ff03 that's already in -next, this should go through the device-mapper tree. --- Dan Williams (2): dax: introduce CONFIG_DAX_DRIVER dm: allow device-mapper to operate without dax support arch/powerpc/platforms/Kconfig | 1 + drivers/block/Kconfig | 1 + drivers/dax/Kconfig | 4 +++- drivers/md/Kconfig | 2 +- drivers/md/dm-linear.c | 6 ++++++ drivers/md/dm-stripe.c | 6 ++++++ drivers/md/dm.c | 10 ++++++---- drivers/nvdimm/Kconfig | 1 + drivers/s390/block/Kconfig | 1 + include/linux/dax.h | 30 ++++++++++++++++++++++++------ 10 files changed, 50 insertions(+), 12 deletions(-)