]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Ensure we release the TCP socket once it has been closed
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 19 Jun 2015 20:17:57 +0000 (16:17 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 19 Jun 2015 23:20:12 +0000 (19:20 -0400)
commitae0d43d8a43a9efd8ef5db823db4d69a39e34dda
tree9e9eecb8c4cc2c79a19104e4a9846d4f330ed40d
parent62d570a5cc9af2a84f5427e27b5a66c2a3ed0ac7
SUNRPC: Ensure we release the TCP socket once it has been closed

This fixes a regression introduced by commit a62f4ced70be22 ("SUNRPC:
Make xs_tcp_close() do a socket shutdown rather than a sock_release").
Prior to that commit, the autoclose feature would ensure that an
idle connection would result in the socket being both disconnected and
released, whereas now only gets disconnected.

While the current behaviour is harmless, it does leave the port bound
until either RPC traffic resumes or the RPC client is shut down.

Reported-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c