diff options
| author | Trond Myklebust <trond.myklebust@fys.uio.no> | 2003-08-21 04:29:14 -0700 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@fys.uio.no> | 2003-08-21 04:29:14 -0700 |
| commit | df9e22888f4ad5dc4f06f7e339de0b12e59626d7 (patch) | |
| tree | c9277a2e5e2a9f5aaecb72952618ac32d5acaaaa /include/linux/sunrpc/timer.h | |
| parent | 4a79c510d744b0b27cb574a1684ac2805fc5ed8c (diff) | |
Back out some congestion control changes that were causing trouble,
among other things, for the "soft" mount option.
Diffstat (limited to 'include/linux/sunrpc/timer.h')
| -rw-r--r-- | include/linux/sunrpc/timer.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/sunrpc/timer.h b/include/linux/sunrpc/timer.h index ff6bc599eeec..f2f2ffc4f2cd 100644 --- a/include/linux/sunrpc/timer.h +++ b/include/linux/sunrpc/timer.h @@ -15,7 +15,6 @@ struct rpc_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 */ }; @@ -23,19 +22,4 @@ extern void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo); extern void rpc_update_rtt(struct rpc_rtt *rt, unsigned timer, long m); extern unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer); -static inline void rpc_inc_timeo(struct rpc_rtt *rt) -{ - atomic_inc(&rt->ntimeouts); -} - -static inline void rpc_clear_timeo(struct rpc_rtt *rt) -{ - atomic_set(&rt->ntimeouts, 0); -} - -static inline int rpc_ntimeo(struct rpc_rtt *rt) -{ - return atomic_read(&rt->ntimeouts); -} - #endif /* _LINUX_SUNRPC_TIMER_H */ |
