Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6327110ybf; Thu, 5 Mar 2020 18:14:59 -0800 (PST) X-Google-Smtp-Source: ADFU+vs+r04pxvNbAaV6/VKJ6C7i4K+op48YfmYP+KZr6JDhiyYATRrxso97HRBsdCQ5OJI0Aj8F X-Received: by 2002:aca:4b57:: with SMTP id y84mr1094321oia.16.1583460899482; Thu, 05 Mar 2020 18:14:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583460899; cv=none; d=google.com; s=arc-20160816; b=wBDC4pB808xhsbU2t7d2kGblwaAO9bcwN+furi8/kuyWHR4VoQ4RGnGqupMDpZ2SmG RixgBz0hcglBkSbqhYpv0E6yGMDLTGdXkQrRtIOJZwPur3ldSWp4kC+vfkL9ZMFzoTX1 wwoapsyCKYc9TULNcPKbwWJpN4naMDjAEnXqYhA26ZzsZUwOeezYEzxpF9NnGQOvgYO1 4Uo5fF4voFeCI20Nd4Uo0A7PFCDP6+KEvrN3lOwY5DkaTHVnEd3bUkM5n058Npt3gAxV qdg3gTM0b+oJWQHin3ShacIVXNy8bkgKxKD2MrX0GBqfsHiJhTk9HwZJu9yoaJ1AA+xr oQWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=aqwycyDS06D/TGrgR48AyUr0IIdvM19mgqylbZFlv74=; b=ubBiYeToaMI3l8Mc8r1PcRMJoXKInVIniRnOm3lskMVioL66WIR+z9BaDuDRB8vF// 5uyc2S3I8Wxu5jocxWXj8/K2mjFU8fKc9vBpjy/f11vCcwrJj2D9Oc/GhYILClSd54t+ swSVu10QNG/C0XK2dfejRFqKkx3ZDQhAtKSpwFDmcl/9eBoZy6hYbHGq75K10dMjyb3f nnYT71fYZFiBttVHMmiAluBJML/etE2i5/f9iYFiJoGXRVG4wpF6ItMBhE6b7nw2MDO1 qXi3Sea8V9JWnK8mv3/7RGqxHRZFOaenmgJJJPWM63wA6gheT1DGYR07qquSBTgq7qS4 Os8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f20si519603oti.224.2020.03.05.18.14.35; Thu, 05 Mar 2020 18:14:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726682AbgCFCOJ (ORCPT + 99 others); Thu, 5 Mar 2020 21:14:09 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:11175 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726317AbgCFCOJ (ORCPT ); Thu, 5 Mar 2020 21:14:09 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3BCD9F2B0A53B14436A0; Fri, 6 Mar 2020 10:14:06 +0800 (CST) Received: from [127.0.0.1] (10.173.223.234) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Mar 2020 10:14:04 +0800 Subject: Re: [PATCH] NFSD: Fix NFS server build errors To: Chuck Lever , , References: <20200305233433.14530.61315.stgit@klimt.1015granger.net> CC: From: Yuehaibing Message-ID: <631f52a1-b557-9137-0a7c-f493ac3339af@huawei.com> Date: Fri, 6 Mar 2020 10:14:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20200305233433.14530.61315.stgit@klimt.1015granger.net> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 2020/3/6 7:38, Chuck Lever wrote: > yuehaibing@huawei.com reports the following build errors arise when > CONFIG_NFSD_V4_2_INTER_SSC is set and the NFS client is not built > into the kernel: > > fs/nfsd/nfs4proc.o: In function `nfsd4_do_copy': > nfs4proc.c:(.text+0x23b7): undefined reference to `nfs42_ssc_close' > fs/nfsd/nfs4proc.o: In function `nfsd4_copy': > nfs4proc.c:(.text+0x5d2a): undefined reference to `nfs_sb_deactive' > fs/nfsd/nfs4proc.o: In function `nfsd4_do_async_copy': > nfs4proc.c:(.text+0x61d5): undefined reference to `nfs42_ssc_open' > nfs4proc.c:(.text+0x6389): undefined reference to `nfs_sb_deactive' > > The new inter-server copy code invokes client functions. Until the > NFS server has infrastructure to load the appropriate NFS client > modules to handle inter-server copy requests, let's constrain the > way this feature is built. > > Reported-by: YueHaibing > Fixes: ce0887ac96d3 ("NFSD add nfs4 inter ssc to nfsd4_copy") > Signed-off-by: Chuck Lever > --- > fs/nfsd/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > Yue - does this work for you? The dependency is easier for me to > understand. It works for me. Tested-by: YueHaibing # build-tested > > Bruce and Olga - OK with this temporary solution? > > diff --git a/fs/nfsd/Kconfig b/fs/nfsd/Kconfig > index f368f3215f88..99d2cae91bd6 100644 > --- a/fs/nfsd/Kconfig > +++ b/fs/nfsd/Kconfig > @@ -136,7 +136,7 @@ config NFSD_FLEXFILELAYOUT > > config NFSD_V4_2_INTER_SSC > bool "NFSv4.2 inter server to server COPY" > - depends on NFSD_V4 && NFS_V4_1 && NFS_V4_2 > + depends on NFSD_V4 && NFS_V4_1 && NFS_V4_2 && NFS_FS=y > help > This option enables support for NFSv4.2 inter server to > server copy where the destination server calls the NFSv4.2 > > >