aboutsummaryrefslogtreecommitdiff
path: root/sys/nfsclient/nfsmount.h
diff options
context:
space:
mode:
authorChuck Lever <cel@FreeBSD.org>2006-05-23 18:33:58 +0000
committerChuck Lever <cel@FreeBSD.org>2006-05-23 18:33:58 +0000
commit94163ea283bac49154a617d91d9a2849742a889c (patch)
tree8e9eadb2175472785f8fc6b2f9477037efeed9f7 /sys/nfsclient/nfsmount.h
parent6a09faf2cb13b569504866d22f37789b33c6d1f8 (diff)
downloadsrc-94163ea283bac49154a617d91d9a2849742a889c.tar.gz
src-94163ea283bac49154a617d91d9a2849742a889c.zip
Refactor the NFS over UDP retransmit timeout estimation logic to allow
the estimator to be more easily tuned and maintained. There should be no functional change except there is now a lower limit on the retransmit timeout to prevent the client from retransmitting faster than the server's disks can fill requests, and an upper limit to prevent the estimator from taking to long to retransmit during a server outage. Reviewed by: mohan, kris, silby Sponsored by: Network Appliance, Incorporated
Notes
Notes: svn path=/head/; revision=158859
Diffstat (limited to 'sys/nfsclient/nfsmount.h')
-rw-r--r--sys/nfsclient/nfsmount.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfsclient/nfsmount.h b/sys/nfsclient/nfsmount.h
index e7b9d0fdd75f..4fd2afe2bd9f 100644
--- a/sys/nfsclient/nfsmount.h
+++ b/sys/nfsclient/nfsmount.h
@@ -64,8 +64,8 @@ struct nfsmount {
struct sockaddr *nm_nam; /* Addr of server */
int nm_timeo; /* Init timer for NFSMNT_DUMBTIMR */
int nm_retry; /* Max retries */
- int nm_srtt[4]; /* Timers for rpcs */
- int nm_sdrtt[4];
+ int nm_srtt[NFS_MAX_TIMER], /* RTT Timers for rpcs */
+ nm_sdrtt[NFS_MAX_TIMER];
int nm_sent; /* Request send count */
int nm_cwnd; /* Request send window */
int nm_timeouts; /* Request timeouts */