Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6211455ybf; Thu, 5 Mar 2020 15:41:10 -0800 (PST) X-Google-Smtp-Source: ADFU+vvz9pytei4pS5r5kuaR14vMLWjJRBBlWkLDNepkuHobpd2px2mysygZrewI+MVULjic/Fn2 X-Received: by 2002:aca:4d82:: with SMTP id a124mr696960oib.103.1583451670051; Thu, 05 Mar 2020 15:41:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583451670; cv=none; d=google.com; s=arc-20160816; b=uD5lDgNlDjE+SU9wwXpI3ytUI0JVNc//WU2m569HqmT2x+PgEMDzUESoPSdVMu+df5 YwcaJlN99A8WzJls+Q2qZmkSqYqKXWmMkPXxnF3BmNqDM1pbPFaFMoBba1oeafzC+/v0 H5bSZEzCLyuqfsGs+beQj5ZfVhkElVjVQe/yeNm61D1WuGZQzYi0Pwmn1B7c9s0mEQI9 w2fQEF2FS7XTHRk5Fq/wp0Fr7rInPWIBq54voM3yv3s7TtburTgjw+EHfthj5Pl1eL0x rqQn5enIV+cazsTAoHegowwTC7c/b9ZjVh3TAtzoDtm9nwEa4v4AUv1VisPYEAZZmqn4 l3tw== 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:mime-version :user-agent:message-id:date:cc:to:from:subject:dkim-signature; bh=WQRagZjEQb6MuQ+PTLGl2br/RKPZAlzPZPRzayKDcCo=; b=ul/XIqhiAAR+mIA8kaE9tWjjrXXnJPl268JuHdGbkIyXVt5bbH6XEnihlpFRNvgmW/ agwfYlIFVIcvrUwxdFLh4fy4r4Rw2kR4nl6Ft95SILc1Y379/7Mbv/j6R6uYaC0Khtiv zwGsZr/OfDLi/o4F/TIAZy+OSgWIOSXrmwARmhaqmN+idGUjoeXlXL1BMbAgXA2HPMvA nlLlVnedrnIzF/6V6/Su9+PyZrncZnpkcfGr9wWug9qR9f5CH0d2KhzQwa1ADHWr8lBZ oCi9KRy8pIsWRV2/1+bW/WR1hmgGeXMjIfwWl3OGMQ1LkvdOKUqRXnbMGtSjV3jD4sN1 lhQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=rzsMKUm3; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si255340otq.67.2020.03.05.15.40.40; Thu, 05 Mar 2020 15:41:10 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=rzsMKUm3; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726173AbgCEXiQ (ORCPT + 99 others); Thu, 5 Mar 2020 18:38:16 -0500 Received: from mail-yw1-f66.google.com ([209.85.161.66]:33240 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbgCEXiQ (ORCPT ); Thu, 5 Mar 2020 18:38:16 -0500 Received: by mail-yw1-f66.google.com with SMTP id j186so569365ywe.0 for ; Thu, 05 Mar 2020 15:38:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:from:to:cc:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=WQRagZjEQb6MuQ+PTLGl2br/RKPZAlzPZPRzayKDcCo=; b=rzsMKUm3uCTZYz/NxaV/Zg8AoIUKbfFVLvpfGOUTERinjkyaSpJ2XJF3DEpcVYG5TT Ju+ltUcjIFB/Gn1PTnjqN/afCY757Q+BWo7WJzOPBT5Qyu51C8TOjerVEdHWKaUYiLsv uOMl0bkyVVR1Icyy99jz7LutIrvPUFQn9DUzLsjTnju/iThl1F+4YnaTFynh63g6C9IL WaE0o/7xue7Ltw5D8iqwlFET9L3XjFiirR4C8wB7gfvV8bXfx2I9wtL21+2K9FbdMYYV 0o9gHXfzblUF8ZxcffxDMZAUuv9WQHwzCDd92UKK9ZBmKvAHAhCyOy5cbRgfIYLX6eNf zp7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:from:to:cc:date:message-id :user-agent:mime-version:content-transfer-encoding; bh=WQRagZjEQb6MuQ+PTLGl2br/RKPZAlzPZPRzayKDcCo=; b=hApwzK0yCXS0oTb0HSGcy4w+K0nTsyg12Zd495XLK+206c8cunVrQUrpPs8+XrXxTL 60OKpZkQaLNNZTRBqmu4wnW9C3/9U0NAEkF7tHTvsIMUyn/0bTlPystapAo+bxNQr3dq DgPxa82Umc++P2cvhgm4UGGDKQC4dIYA6hqX/kxUwq5rRYvIl4PMES+sYyneFWyff9X8 LQfkaAh0MH9d9ar3Jf40uSBFPg/oJwF5NjtOzO5a5tU0SX9ydM80Dzlu6F1I8TDyuiNt tZymf5c8683Zw+Ij2j4yvcaJ0XlPbWmgxK2B9wr3GBUvPBjUY1iQ76W5sOOYU07F0opE AV/Q== X-Gm-Message-State: ANhLgQ0sQ2Gfz7nB+QwIPRaAHuwJSWsvB1qJZRZx5vuSantc+WdlCJjv /QAy6L8RJbS74Dq+FrsKiDU= X-Received: by 2002:a25:6a56:: with SMTP id f83mr844067ybc.17.1583451495687; Thu, 05 Mar 2020 15:38:15 -0800 (PST) Received: from gateway.1015granger.net (c-68-61-232-219.hsd1.mi.comcast.net. [68.61.232.219]) by smtp.gmail.com with ESMTPSA id f205sm10724400ywa.2.2020.03.05.15.38.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Mar 2020 15:38:15 -0800 (PST) Received: from klimt.1015granger.net (klimt.1015granger.net [192.168.1.55]) by gateway.1015granger.net (8.14.7/8.14.7) with ESMTP id 025NcBvJ026831; Thu, 5 Mar 2020 23:38:12 GMT Subject: [PATCH] NFSD: Fix NFS server build errors From: Chuck Lever To: bfields@fieldses.org, kolga@netapp.com, yuehaibing@huawei.com Cc: linux-nfs@vger.kernel.org Date: Thu, 05 Mar 2020 18:38:11 -0500 Message-ID: <20200305233433.14530.61315.stgit@klimt.1015granger.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org 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. 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