SUNRPC: Ensure we always close the socket after a connection shuts down
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 5 Feb 2018 15:20:06 +0000 (10:20 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 6 Feb 2018 00:23:28 +0000 (19:23 -0500)
commit9b30889c548a4d45bfe6226e58de32504c1d682f
tree59e88546c67470bca8867e84a1524870bfd71189
parente231c6879cfd44e4fffd384bb6dd7d313249a523
SUNRPC: Ensure we always close the socket after a connection shuts down

Ensure that we release the TCP socket once it is in the TCP_CLOSE or
TCP_TIME_WAIT state (and only then) so that we don't confuse rkhunter
and its ilk.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/xprtsock.c