diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-09-24 12:06:07 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2013-10-01 18:22:11 -0400 |
commit | 99875249bfbfb6d9a2aba020ce65da2862d0dafa (patch) | |
tree | fedd47efcd9785fc82ed78af1cb835cbd4a0c17a /fs/nfs/client.c | |
parent | 8a19a0b6cb2e2216afd68ef2047f30260cc8a220 (diff) | |
download | linux-stable-99875249bfbfb6d9a2aba020ce65da2862d0dafa.tar.gz linux-stable-99875249bfbfb6d9a2aba020ce65da2862d0dafa.tar.bz2 linux-stable-99875249bfbfb6d9a2aba020ce65da2862d0dafa.zip |
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/client.c')
-rw-r--r-- | fs/nfs/client.c | 2 |
1 files changed, 2 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, if (test_bit(NFS_CS_DISCRTRY, &clp->cl_flags)) args.flags |= RPC_CLNT_CREATE_DISCRTRY; + if (test_bit(NFS_CS_NO_RETRANS_TIMEOUT, &clp->cl_flags)) + args.flags |= RPC_CLNT_CREATE_NO_RETRANS_TIMEOUT; if (test_bit(NFS_CS_NORESVPORT, &clp->cl_flags)) args.flags |= RPC_CLNT_CREATE_NONPRIVPORT; if (test_bit(NFS_CS_INFINITE_SLOTS, &clp->cl_flags)) |