Message ID | 20200923230606.63904-2-dai.ngo@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | NFSv4.2: Fix NFS4ERR_STALE with inter server copy | expand |
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
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(-)