patch-2.4.23 linux-2.4.23/net/sunrpc/timer.c
Next file: linux-2.4.23/net/sunrpc/xprt.c
Previous file: linux-2.4.23/net/sunrpc/svcsock.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
2003-11-28 10:26:21.000000000 -0800
-  Orig file: 
linux-2.4.22/net/sunrpc/timer.c
-  Orig date: 
2002-11-28 15:53:16.000000000 -0800
diff -urN linux-2.4.22/net/sunrpc/timer.c linux-2.4.23/net/sunrpc/timer.c
@@ -8,7 +8,7 @@
 
 #define RPC_RTO_MAX (60*HZ)
 #define RPC_RTO_INIT (HZ/5)
-#define RPC_RTO_MIN (2)
+#define RPC_RTO_MIN (HZ/10)
 
 void
 rpc_init_rtt(struct rpc_rtt *rt, long timeo)
@@ -22,7 +22,7 @@
 		rt->srtt[i] = t;
 		rt->sdrtt[i] = RPC_RTO_INIT;
 	}
-	atomic_set(&rt->ntimeouts, 0);
+	memset(rt->ntimeouts, 0, sizeof(rt->ntimeouts));
 }
 
 void
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)