From: Dai Ngo <dai.ngo@oracle.com>
To: linux-nfs@vger.kernel.org
Subject: [PATCH 1/1] NFSv4.2: Fix NFS4ERR_STALE error when doing inter server copy
Date: Wed, 23 Sep 2020 19:06:06 -0400	[thread overview]
Message-ID: <20200923230606.63904-2-dai.ngo@oracle.com> (raw)
In-Reply-To: <20200923230606.63904-1-dai.ngo@oracle.com>
NFS_FS=y as dependency of CONFIG_NFSD_V4_2_INTER_SSC still have
build errors and some configs with NFSD=m to get NFS4ERR_STALE
error when doing inter server copy.
Modified depends of CONFIG_NFSD_V4_2_INTER_SSC to fix build errors
and to allow inter server copy to work with all configs with NFS_FS=m
and config with (NFSD=y, NFS_FS=y and NFS_V4=y).
Fixes: 3ac3711adb88 ("NFSD: Fix NFS server build errors")
Signed-off-by: dai.ngo@oracle.com
---
 fs/nfsd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/nfsd/Kconfig b/fs/nfsd/Kconfig
index 99d2cae91bd6..990078102a02 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 && NFS_FS=y
+	depends on NFSD_V4 && NFS_V4_1 && NFS_V4_2 && !(NFSD=y && (NFS_FS=m || NFS_V4=m))
 	help
 	  This option enables support for NFSv4.2 inter server to
 	  server copy where the destination server calls the NFSv4.2
-- 
1.8.3.1
next prev parent reply	other threads:[~2020-09-23 23:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-23 23:06 [PATCH 0/1] NFSv4.2: Fix NFS4ERR_STALE with inter server copy Dai Ngo
2020-09-23 23:06 ` Dai Ngo [this message]
2020-09-23 23:29 ` Chuck Lever
2020-09-24  1:57   ` Dai Ngo
2020-09-30  3:18 ` Dai Ngo
2020-10-01 20:51   ` Bruce Fields
2020-10-01 21:48     ` Dai Ngo
2020-10-01 21:52       ` Bruce Fields
2020-10-01 22:15         ` Dai Ngo
     [not found]         ` <87879d23-986f-e123-1597-842a2913e864@oracle.com>
2020-10-06 15:20           ` Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=20200923230606.63904-2-dai.ngo@oracle.com \
    --to=dai.ngo@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).