Skip to content

Commit dbc4fec

Browse files
olgakorn1Trond Myklebust
authored andcommitted
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 <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent ab91e7a commit dbc4fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfs/nfs4client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ static int nfs4_set_client(struct nfs_server *server,
880880

881881
if (minorversion == 0)
882882
__set_bit(NFS_CS_REUSEPORT, &cl_init.init_flags);
883-
else if (proto == XPRT_TRANSPORT_TCP)
883+
if (proto == XPRT_TRANSPORT_TCP)
884884
cl_init.nconnect = nconnect;
885885

886886
if (server->flags & NFS_MOUNT_NORESVPORT)

0 commit comments

Comments
 (0)