From 8c89cff6051d4938d8b9cd977ff61a40b53a6db6 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Tue, 30 Jun 2009 12:55:48 +0100 Subject: [PATCH] patch nfs-allow-0-retransmits.patch --- fs/nfs/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/nfs/client.c b/fs/nfs/client.c index 5ee23e70..351dbd21 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -435,7 +435,9 @@ static void nfs_init_timeout_values(struct rpc_timeout *to, int proto, switch (proto) { case XPRT_TRANSPORT_TCP: case XPRT_TRANSPORT_RDMA: - if (to->to_retries == 0) + if (to->to_retries == 0x7fffffff) + to->to_retries = 0; + else if (to->to_retries == 0) to->to_retries = NFS_DEF_TCP_RETRANS; if (to->to_initval == 0) to->to_initval = NFS_DEF_TCP_TIMEO * HZ / 10; -- 2.39.5