aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-09-24 12:06:07 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-10-01 18:22:11 -0400
commit99875249bfbfb6d9a2aba020ce65da2862d0dafa (patch)
treefedd47efcd9785fc82ed78af1cb835cbd4a0c17a /fs/nfs
parent8a19a0b6cb2e2216afd68ef2047f30260cc8a220 (diff)
NFSv4: Ensure that we disable the resend timeout for NFSv4
The spec states that the client should not resend requests because the server will disconnect if it needs to drop an RPC request. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/client.c2
-rw-r--r--fs/nfs/nfs4client.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 2dceee4db076..af0325864df6 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -590,6 +590,8 @@ int nfs_create_rpc_client(struct nfs_client *clp,
590 590
591 if (test_bit(NFS_CS_DISCRTRY, &clp->cl_flags)) 591 if (test_bit(NFS_CS_DISCRTRY, &clp->cl_flags))
592 args.flags |= RPC_CLNT_CREATE_DISCRTRY; 592 args.flags |= RPC_CLNT_CREATE_DISCRTRY;
593 if (test_bit(NFS_CS_NO_RETRANS_TIMEOUT, &clp->cl_flags))
594 args.flags |= RPC_CLNT_CREATE_NO_RETRANS_TIMEOUT;
593 if (test_bit(NFS_CS_NORESVPORT, &clp->cl_flags)) 595 if (test_bit(NFS_CS_NORESVPORT, &clp->cl_flags))
594 args.flags |= RPC_CLNT_CREATE_NONPRIVPORT; 596 args.flags |= RPC_CLNT_CREATE_NONPRIVPORT;
595 if (test_bit(NFS_CS_INFINITE_SLOTS, &clp->cl_flags)) 597 if (test_bit(NFS_CS_INFINITE_SLOTS, &clp->cl_flags))
diff --git a/fs/nfs/nfs4client.c b/fs/nfs/nfs4client.c
index a860ab566d6e..511cdce6ecf2 100644
--- a/fs/nfs/nfs4client.c
+++ b/fs/nfs/nfs4client.c
@@ -368,6 +368,7 @@ struct nfs_client *nfs4_init_client(struct nfs_client *clp,
368 if (clp->cl_minorversion != 0) 368 if (clp->cl_minorversion != 0)
369 __set_bit(NFS_CS_INFINITE_SLOTS, &clp->cl_flags); 369 __set_bit(NFS_CS_INFINITE_SLOTS, &clp->cl_flags);
370 __set_bit(NFS_CS_DISCRTRY, &clp->cl_flags); 370 __set_bit(NFS_CS_DISCRTRY, &clp->cl_flags);
371 __set_bit(NFS_CS_NO_RETRANS_TIMEOUT, &clp->cl_flags);
371 error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_GSS_KRB5I); 372 error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_GSS_KRB5I);
372 if (error == -EINVAL) 373 if (error == -EINVAL)
373 error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_UNIX); 374 error = nfs_create_rpc_client(clp, timeparms, RPC_AUTH_UNIX);