Commit 0e6a8740 authored by Trond Myklebust's avatar Trond Myklebust Committed by Linus Torvalds

[PATCH] Fix typo in the RPC reconnect code...

The following patch fixes a typo that appears both in kernel 2.4.19
and 2.5.31
parent 2e2fa887
...@@ -478,7 +478,7 @@ xprt_reconnect(struct rpc_task *task) ...@@ -478,7 +478,7 @@ xprt_reconnect(struct rpc_task *task)
if (inet->state != TCP_ESTABLISHED) { if (inet->state != TCP_ESTABLISHED) {
task->tk_timeout = xprt->timeout.to_maxval; task->tk_timeout = xprt->timeout.to_maxval;
/* if the socket is already closing, delay 5 secs */ /* if the socket is already closing, delay 5 secs */
if ((1<<inet->state) & ~(TCP_SYN_SENT|TCP_SYN_RECV)) if ((1<<inet->state) & ~(TCPF_SYN_SENT|TCPF_SYN_RECV))
task->tk_timeout = 5*HZ; task->tk_timeout = 5*HZ;
rpc_sleep_on(&xprt->pending, task, xprt_reconn_status, NULL); rpc_sleep_on(&xprt->pending, task, xprt_reconn_status, NULL);
release_sock(inet); release_sock(inet);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment