From: t_jeang Date: Tue, 6 Jan 2009 12:06:00 +0000 (+0000) Subject: imported patch nfs-allow-0-retransmits.patch X-Git-Tag: 3w-xxxx-mwi.patch X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=5e8425781741773f00aee110f83d201f3c232f02;p=xenclient%2Fkernel.git imported patch nfs-allow-0-retransmits.patch --- 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) {