summaryrefslogtreecommitdiff
path: root/fs/nfs
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2020-06-23 17:35:28 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2020-07-17 20:16:23 +0300
commitdbc4fec6b6dd2d23e161b250d51cbd28bd9c8497 (patch)
tree8514a5a68ffa40b09c873920e7ef8ab165052ac9 /fs/nfs
parentab91e7a6da7eeb8aa54843748652c186daee43eb (diff)
downloadlinux-dbc4fec6b6dd2d23e161b250d51cbd28bd9c8497.tar.xz
NFSv4.0 allow nconnect for v4.0
It looks like this "else" is just a typo. It turns off nconnect for NFSv4.0 even though it works for every other version. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs4client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index c41cbd86612c..daacc78a3d48 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -880,7 +880,7 @@ static int nfs4_set_client(struct nfs_server *server,
if (minorversion == 0)
__set_bit(NFS_CS_REUSEPORT, &cl_init.init_flags);
- else if (proto == XPRT_TRANSPORT_TCP)
+ if (proto == XPRT_TRANSPORT_TCP)
cl_init.nconnect = nconnect;
if (server->flags & NFS_MOUNT_NORESVPORT)