Commit ec213433 authored by Chuck Lever's avatar Chuck Lever Committed by Linus Torvalds

[PATCH] minor TCP connect cleanup

TCP connect semantics now assume the rpciod is already running, so there
is no longer a need to bump the rpciod semaphor when connecting or closing
an RPC over TCP transport socket.
parent ff304563
...@@ -389,12 +389,6 @@ xprt_close(struct rpc_xprt *xprt) ...@@ -389,12 +389,6 @@ xprt_close(struct rpc_xprt *xprt)
sk->no_check = 0; sk->no_check = 0;
sock_release(sock); sock_release(sock);
/*
* TCP doesn't require the rpciod now - other things may
* but rpciod handles that not us.
*/
if(xprt->stream)
rpciod_down();
} }
/* /*
...@@ -1457,11 +1451,6 @@ xprt_bind_socket(struct rpc_xprt *xprt, struct socket *sock) ...@@ -1457,11 +1451,6 @@ xprt_bind_socket(struct rpc_xprt *xprt, struct socket *sock)
/* Reset to new socket */ /* Reset to new socket */
xprt->sock = sock; xprt->sock = sock;
xprt->inet = sk; xprt->inet = sk;
/*
* TCP requires the rpc I/O daemon is present
*/
if(xprt->stream)
rpciod_up();
return; return;
} }
......
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