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>
This commit is contained in:
parent
ab91e7a6da
commit
dbc4fec6b6
|
@ -880,7 +880,7 @@ static int nfs4_set_client(struct nfs_server *server,
|
||||||
|
|
||||||
if (minorversion == 0)
|
if (minorversion == 0)
|
||||||
__set_bit(NFS_CS_REUSEPORT, &cl_init.init_flags);
|
__set_bit(NFS_CS_REUSEPORT, &cl_init.init_flags);
|
||||||
else if (proto == XPRT_TRANSPORT_TCP)
|
if (proto == XPRT_TRANSPORT_TCP)
|
||||||
cl_init.nconnect = nconnect;
|
cl_init.nconnect = nconnect;
|
||||||
|
|
||||||
if (server->flags & NFS_MOUNT_NORESVPORT)
|
if (server->flags & NFS_MOUNT_NORESVPORT)
|
||||||
|
|
Loading…
Reference in New Issue