summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-09-18 09:52:07 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-09-19 16:38:35 -0400
commit4b0ab51db32eba0f48b7618254742f143364a28d (patch)
tree644e6f46e2cd6b16ac9dedca34c54f8314081325 /net/sunrpc/xprtsock.c
parent79234c3db6842a3de03817211d891e0c2878f756 (diff)
downloadlinux-4b0ab51db32eba0f48b7618254742f143364a28d.tar.bz2
SUNRPC: xs_sock_mark_closed() does not need to trigger socket autoclose
Under all conditions, it should be quite sufficient just to mark the socket as disconnected. It will then be closed by the transport shutdown or reconnect code. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index c35038511686..1a85e0ed0b48 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -777,7 +777,6 @@ static void xs_sock_mark_closed(struct rpc_xprt *xprt)
xs_sock_reset_connection_flags(xprt);
/* Mark transport as closed and wake up all pending tasks */
xprt_disconnect_done(xprt);
- xprt_force_disconnect(xprt);
}
/**