From 5e8425781741773f00aee110f83d201f3c232f02 Mon Sep 17 00:00:00 2001 From: t_jeang Date: Tue, 6 Jan 2009 12:06:00 +0000 Subject: [PATCH] imported 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 310c4606..f527d5f8 100644 --- a/fs/nfs/client.c +++ b/fs/nfs/client.c @@ -368,7 +368,9 @@ static void nfs_init_timeout_values(struct rpc_timeout *to, int proto, { to->to_initval = timeo * HZ / 10; to->to_retries = retrans; - if (!to->to_retries) + if (to->to_retries == 0x7fffffff) + to->to_retries = 0; + else if (!to->to_retries) to->to_retries = 2; switch (proto) { -- 2.39.5