Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
df9e2288
Commit
df9e2288
authored
Aug 21, 2003
by
Trond Myklebust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back out some congestion control changes that were causing trouble,
among other things, for the "soft" mount option.
parent
4a79c510
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
46 deletions
+5
-46
include/linux/sunrpc/timer.h
include/linux/sunrpc/timer.h
+0
-16
net/sunrpc/clnt.c
net/sunrpc/clnt.c
+2
-2
net/sunrpc/timer.c
net/sunrpc/timer.c
+0
-2
net/sunrpc/xprt.c
net/sunrpc/xprt.c
+3
-26
No files found.
include/linux/sunrpc/timer.h
View file @
df9e2288
...
@@ -15,7 +15,6 @@ struct rpc_rtt {
...
@@ -15,7 +15,6 @@ struct rpc_rtt {
unsigned
long
timeo
;
/* default timeout value */
unsigned
long
timeo
;
/* default timeout value */
unsigned
long
srtt
[
5
];
/* smoothed round trip time << 3 */
unsigned
long
srtt
[
5
];
/* smoothed round trip time << 3 */
unsigned
long
sdrtt
[
5
];
/* smoothed medium deviation of RTT */
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);
...
@@ -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
void
rpc_update_rtt
(
struct
rpc_rtt
*
rt
,
unsigned
timer
,
long
m
);
extern
unsigned
long
rpc_calc_rto
(
struct
rpc_rtt
*
rt
,
unsigned
timer
);
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 */
#endif
/* _LINUX_SUNRPC_TIMER_H */
net/sunrpc/clnt.c
View file @
df9e2288
...
@@ -744,14 +744,14 @@ call_timeout(struct rpc_task *task)
...
@@ -744,14 +744,14 @@ call_timeout(struct rpc_task *task)
dprintk
(
"RPC: %4d call_timeout (major)
\n
"
,
task
->
tk_pid
);
dprintk
(
"RPC: %4d call_timeout (major)
\n
"
,
task
->
tk_pid
);
if
(
clnt
->
cl_softrtry
)
{
if
(
clnt
->
cl_softrtry
)
{
if
(
clnt
->
cl_chatty
&&
!
task
->
tk_exit
)
if
(
clnt
->
cl_chatty
)
printk
(
KERN_NOTICE
"%s: server %s not responding, timed out
\n
"
,
printk
(
KERN_NOTICE
"%s: server %s not responding, timed out
\n
"
,
clnt
->
cl_protname
,
clnt
->
cl_server
);
clnt
->
cl_protname
,
clnt
->
cl_server
);
rpc_exit
(
task
,
-
EIO
);
rpc_exit
(
task
,
-
EIO
);
return
;
return
;
}
}
if
(
clnt
->
cl_chatty
&&
!
(
task
->
tk_flags
&
RPC_CALL_MAJORSEEN
)
&&
rpc_ntimeo
(
&
clnt
->
cl_rtt
)
>
7
)
{
if
(
clnt
->
cl_chatty
&&
!
(
task
->
tk_flags
&
RPC_CALL_MAJORSEEN
))
{
task
->
tk_flags
|=
RPC_CALL_MAJORSEEN
;
task
->
tk_flags
|=
RPC_CALL_MAJORSEEN
;
printk
(
KERN_NOTICE
"%s: server %s not responding, still trying
\n
"
,
printk
(
KERN_NOTICE
"%s: server %s not responding, still trying
\n
"
,
clnt
->
cl_protname
,
clnt
->
cl_server
);
clnt
->
cl_protname
,
clnt
->
cl_server
);
...
...
net/sunrpc/timer.c
View file @
df9e2288
...
@@ -41,8 +41,6 @@ rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo)
...
@@ -41,8 +41,6 @@ rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo)
rt
->
srtt
[
i
]
=
init
;
rt
->
srtt
[
i
]
=
init
;
rt
->
sdrtt
[
i
]
=
RPC_RTO_INIT
;
rt
->
sdrtt
[
i
]
=
RPC_RTO_INIT
;
}
}
atomic_set
(
&
rt
->
ntimeouts
,
0
);
}
}
/*
/*
...
...
net/sunrpc/xprt.c
View file @
df9e2288
...
@@ -585,7 +585,6 @@ xprt_complete_rqst(struct rpc_xprt *xprt, struct rpc_rqst *req, int copied)
...
@@ -585,7 +585,6 @@ xprt_complete_rqst(struct rpc_xprt *xprt, struct rpc_rqst *req, int copied)
rpc_update_rtt
(
&
clnt
->
cl_rtt
,
timer
,
rpc_update_rtt
(
&
clnt
->
cl_rtt
,
timer
,
(
long
)
jiffies
-
req
->
rq_xtime
);
(
long
)
jiffies
-
req
->
rq_xtime
);
}
}
rpc_clear_timeo
(
&
clnt
->
cl_rtt
);
}
}
#ifdef RPC_PROFILE
#ifdef RPC_PROFILE
...
@@ -1051,21 +1050,6 @@ xprt_write_space(struct sock *sk)
...
@@ -1051,21 +1050,6 @@ xprt_write_space(struct sock *sk)
read_unlock
(
&
sk
->
sk_callback_lock
);
read_unlock
(
&
sk
->
sk_callback_lock
);
}
}
/*
* Exponential backoff for UDP retries
*/
static
inline
int
xprt_expbackoff
(
struct
rpc_task
*
task
,
struct
rpc_rqst
*
req
)
{
int
backoff
;
req
->
rq_ntimeo
++
;
backoff
=
min
(
rpc_ntimeo
(
&
task
->
tk_client
->
cl_rtt
),
XPRT_MAX_BACKOFF
);
if
(
req
->
rq_ntimeo
<
(
1
<<
backoff
))
return
1
;
return
0
;
}
/*
/*
* RPC receive timeout handler.
* RPC receive timeout handler.
*/
*/
...
@@ -1079,14 +1063,7 @@ xprt_timer(struct rpc_task *task)
...
@@ -1079,14 +1063,7 @@ xprt_timer(struct rpc_task *task)
if
(
req
->
rq_received
)
if
(
req
->
rq_received
)
goto
out
;
goto
out
;
if
(
!
xprt
->
nocong
)
{
xprt_adjust_cwnd
(
req
->
rq_xprt
,
-
ETIMEDOUT
);
if
(
xprt_expbackoff
(
task
,
req
))
{
rpc_add_timer
(
task
,
xprt_timer
);
goto
out_unlock
;
}
rpc_inc_timeo
(
&
task
->
tk_client
->
cl_rtt
);
xprt_adjust_cwnd
(
req
->
rq_xprt
,
-
ETIMEDOUT
);
}
req
->
rq_nresend
++
;
req
->
rq_nresend
++
;
dprintk
(
"RPC: %4d xprt_timer (%s request)
\n
"
,
dprintk
(
"RPC: %4d xprt_timer (%s request)
\n
"
,
...
@@ -1096,7 +1073,6 @@ xprt_timer(struct rpc_task *task)
...
@@ -1096,7 +1073,6 @@ xprt_timer(struct rpc_task *task)
out:
out:
task
->
tk_timeout
=
0
;
task
->
tk_timeout
=
0
;
rpc_wake_up_task
(
task
);
rpc_wake_up_task
(
task
);
out_unlock:
spin_unlock
(
&
xprt
->
sock_lock
);
spin_unlock
(
&
xprt
->
sock_lock
);
}
}
...
@@ -1246,7 +1222,8 @@ xprt_transmit(struct rpc_task *task)
...
@@ -1246,7 +1222,8 @@ xprt_transmit(struct rpc_task *task)
if
(
!
xprt
->
nocong
)
{
if
(
!
xprt
->
nocong
)
{
task
->
tk_timeout
=
rpc_calc_rto
(
&
clnt
->
cl_rtt
,
task
->
tk_timeout
=
rpc_calc_rto
(
&
clnt
->
cl_rtt
,
task
->
tk_msg
.
rpc_proc
->
p_timer
);
task
->
tk_msg
.
rpc_proc
->
p_timer
);
req
->
rq_ntimeo
=
0
;
task
->
tk_timeout
<<=
clnt
->
cl_timeout
.
to_retries
-
req
->
rq_timeout
.
to_retries
;
if
(
task
->
tk_timeout
>
req
->
rq_timeout
.
to_maxval
)
if
(
task
->
tk_timeout
>
req
->
rq_timeout
.
to_maxval
)
task
->
tk_timeout
=
req
->
rq_timeout
.
to_maxval
;
task
->
tk_timeout
=
req
->
rq_timeout
.
to_maxval
;
}
else
}
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment