summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorChuck Lever <cel@citi.umich.edu>2002-11-08 03:28:43 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-11-08 03:28:43 -0800
commita7ec0168a72658356d790ae71e500778a6aafde0 (patch)
tree84b87250ea4a6d8955ea4370be2e4495018f7367 /include/linux/sunrpc
parent44a15afe3dff7d44d64ed678c60719a63fad276e (diff)
[PATCH] fix jiffies wrap in new RPC RTO estimator
the new RPC RTO estimator has some jiffies wrap problems.
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r--include/linux/sunrpc/timer.h10
-rw-r--r--include/linux/sunrpc/xprt.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/sunrpc/timer.h b/include/linux/sunrpc/timer.h
index 35b5a5c25170..7ea36ae4037b 100644
--- a/include/linux/sunrpc/timer.h
+++ b/include/linux/sunrpc/timer.h
@@ -12,16 +12,16 @@
#include <asm/atomic.h>
struct rpc_rtt {
- long timeo; /* default timeout value */
- long srtt[5]; /* smoothed round trip time << 3 */
- long sdrtt[5]; /* soothed medium deviation of RTT */
+ unsigned long timeo; /* default timeout value */
+ unsigned long srtt[5]; /* smoothed round trip time << 3 */
+ unsigned long sdrtt[5]; /* smoothed medium deviation of RTT */
atomic_t ntimeouts; /* Global count of the number of timeouts */
};
-extern void rpc_init_rtt(struct rpc_rtt *rt, long timeo);
+extern void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo);
extern void rpc_update_rtt(struct rpc_rtt *rt, int timer, long m);
-extern long rpc_calc_rto(struct rpc_rtt *rt, int timer);
+extern unsigned long rpc_calc_rto(struct rpc_rtt *rt, int timer);
static inline void rpc_inc_timeo(struct rpc_rtt *rt)
{
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h
index 25b1694d6fe8..3eebc1722ea2 100644
--- a/include/linux/sunrpc/xprt.h
+++ b/include/linux/sunrpc/xprt.h
@@ -109,7 +109,7 @@ struct rpc_rqst {
u32 rq_bytes_sent; /* Bytes we have sent */
- long rq_xtime; /* when transmitted */
+ unsigned long rq_xtime; /* when transmitted */
int rq_ntimeo;
int rq_nresend;
};