NFSv4.0 allow nconnect for v4.0
authorOlga Kornievskaia <kolga@netapp.com>
Tue, 23 Jun 2020 14:35:28 +0000 (10:35 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 17 Jul 2020 17:16:23 +0000 (13:16 -0400)
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>
fs/nfs/nfs4client.c

index c41cbd8..daacc78 100644 (file)
@@ -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)