Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4415406imm; Wed, 30 May 2018 05:22:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKUNs8nvzfzRBwqo08kT5ldqoOp0n4fy3v8KZZvedjL/r958jRME2TT8bcx5psf38SVT14i X-Received: by 2002:a17:902:b418:: with SMTP id x24-v6mr2657592plr.2.1527682941352; Wed, 30 May 2018 05:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527682941; cv=none; d=google.com; s=arc-20160816; b=X8cjdDztzErmTKrw2yoqgtopLBmVwYXNwWSBm043bqge3c7ceXIlk+bwzX53uHF1MC J6xqa0e6QMvzwK/el0fwL0P9lJpC71wppiEhjxTuzAJbAnLK3hSyBEFpj8oL+Ujqa1Ge 5Oidsb+L6H/wxKAuYXYT9PpDn9qnJYci7nqmD119NIt8j+H8tGKSxipqZJnI5seS73bU wa5IIZutKnRjsCS/Ol6W+z8KBebcbg7AOdaVSyWHDg5y4C1UV/RiSGzxQfsqfz9cSC4u V/6QOonBa8qZOd+2Jzh75aj+3RP5QvOu7pNtUhOFd/MkyS39Ry4wcXVOWxtG/dE2X/ww moQA== 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 :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=+cTv/h5O/b695zK1x+bbRnB5GC2ID3aO+y0NZAo3nfA=; b=ujjH91uKr2VZW1eaOXZOzrPGLKZFY0Ie67ZZsOXZX/Aqw29VZSGyYxW90MZnZifGiO w5XIAgVF5GyLgnrH3nE5lSjN+OTEacssL4/hfLb5I3fZkugJh/9kG7r00nA/fqztmmfe 1iO6XDYU9CMceirwb0CcERxfrV0ObvZaHvhlm8r6SIxI/9c30sCm2Cgjk3RN1UpTapN/ M1wUKplqaoTXd+jJgy8yhBlOmv32jct1sSA4IrKfdshaj6+LGNQauQMBt1LcDFwf2uMR r6YoOfCARYMGqgPlZTBxyxmRgklZ9BLU1YBregRGVE7Cc3IAIwnLpj55+pdU6gdzHC/q 3ftA== 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 y12-v6si19969550pgp.24.2018.05.30.05.22.06; Wed, 30 May 2018 05:22:21 -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 S1753170AbeE3MVb (ORCPT + 99 others); Wed, 30 May 2018 08:21:31 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54138 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751547AbeE3MVa (ORCPT ); Wed, 30 May 2018 08:21:30 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A20D15BCBE; Wed, 30 May 2018 12:21:29 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 32AD51002951; Wed, 30 May 2018 12:21:25 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id w4UCLPU9032615; Wed, 30 May 2018 08:21:25 -0400 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id w4UCLOeI032610; Wed, 30 May 2018 08:21:24 -0400 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Wed, 30 May 2018 08:21:24 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Arnd Bergmann cc: Shaohua Li , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Matthew Wilcox , Ross Zwisler , linux-fsdevel@vger.kernel.org, Dan Williams , Heinz Mauelshagen , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dm: writecache: add DAX dependency In-Reply-To: <20180528153834.2268557-1-arnd@arndb.de> Message-ID: References: <20180528153834.2268557-1-arnd@arndb.de> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 30 May 2018 12:21:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Wed, 30 May 2018 12:21:29 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'mpatocka@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 May 2018, Arnd Bergmann wrote: > The new dm-writecache driver inconditionally uses the dax > subsystem, leading to link errors in some configurations: > > drivers/md/dm-writecache.o: In function `writecache_ctr': > dm-writecache.c:(.text+0x1fdc): undefined reference to `dax_read_lock' > dm-writecache.c:(.text+0x2004): undefined reference to `dax_direct_access' > dm-writecache.c:(.text+0x21cc): undefined reference to `dax_read_unlock' > > It seems wrong to require DAX in order to build the writecache > driver, but that at least avoids randconfig build errors. > > Fixes: bb15b431d650 ("dm: add writecache target") > Signed-off-by: Arnd Bergmann > --- > drivers/md/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/md/Kconfig b/drivers/md/Kconfig > index 852c7ebe2902..f8ecf2da1edf 100644 > --- a/drivers/md/Kconfig > +++ b/drivers/md/Kconfig > @@ -338,6 +338,7 @@ config DM_CACHE_SMQ > config DM_WRITECACHE > tristate "Writecache target" > depends on BLK_DEV_DM > + depends on DAX > ---help--- > The writecache target caches writes on persistent memory or SSD. > It is intended for databases or other programs that need extremely > -- > 2.9.0 dm-writecache may be used without DAX in SSD-only mode. So, I'd fix this by changing the code in dm-writecache.c to #if !defined(CONFIG_ARCH_HAS_PMEM_API) || !defined(CONFIG_DAX) #define DM_WRITECACHE_ONLY_SSD #endif Mikulas