]> xenbits.xensource.com Git - people/ssmith/nc2-2.6.27.bak/.git/commitdiff
patch nfs-allow-0-retransmits.patch
authorSteven Smith <ssmith@weybridge.uk.xensource.com>
Thu, 28 May 2009 10:54:20 +0000 (11:54 +0100)
committerSteven Smith <ssmith@weybridge.uk.xensource.com>
Thu, 28 May 2009 10:54:20 +0000 (11:54 +0100)
fs/nfs/client.c

index 5ee23e7058b305c061a4e1449fdccc722a68eceb..351dbd21d31015074e12bbac8827f8831aec08eb 100644 (file)
@@ -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;