]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
imported patch nfs-allow-0-retransmits.patch 3w-xxxx-mwi.patch
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:00 +0000 (12:06 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:00 +0000 (12:06 +0000)
fs/nfs/client.c

index 310c46067433eebaa41b6a87573c3be960b312d8..f527d5f88b486f4236004db475decad73c5d07fb 100644 (file)
@@ -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) {