Skip to content

Commit

Permalink
SUNRPC: Remove obsolete messages during transport connect
Browse files Browse the repository at this point in the history
Recent changes to the RPC client's transport connect logic make connect
status values ECONNREFUSED and ECONNRESET impossible.

Clean up xprt_connect_status() to account for these changes.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Chuck Lever authored and Trond Myklebust committed Jul 9, 2008
1 parent 48186c7 commit cd983ef
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions net/sunrpc/xprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ static void xprt_connect_status(struct rpc_task *task)
{
struct rpc_xprt *xprt = task->tk_xprt;

if (task->tk_status >= 0) {
if (task->tk_status == 0) {
xprt->stat.connect_count++;
xprt->stat.connect_time += (long)jiffies - xprt->stat.connect_start;
dprintk("RPC: %5u xprt_connect_status: connection established\n",
Expand All @@ -699,12 +699,6 @@ static void xprt_connect_status(struct rpc_task *task)
}

switch (task->tk_status) {
case -ECONNREFUSED:
case -ECONNRESET:
dprintk("RPC: %5u xprt_connect_status: server %s refused "
"connection\n", task->tk_pid,
task->tk_client->cl_server);
break;
case -ENOTCONN:
dprintk("RPC: %5u xprt_connect_status: connection broken\n",
task->tk_pid);
Expand Down

0 comments on commit cd983ef

Please sign in to comment.