]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SUNRPC: Ensure that the TCP socket is closed when in CLOSE_WAIT
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 12 Sep 2012 20:49:15 +0000 (16:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Oct 2012 16:17:10 +0000 (09:17 -0700)
commitef9fd53c07237e36bd396ffc1784714243869cda
tree6b65a5ac6fa692b77aa61ddb5569314138f273a2
parent72d0ba1fa85d5a45703743b625bcf06d63005185
SUNRPC: Ensure that the TCP socket is closed when in CLOSE_WAIT

commit a519fc7a70d1a918574bb826cc6905b87b482eb9 upstream.

Instead of doing a shutdown() call, we need to do an actual close().
Ditto if/when the server is sending us junk RPC headers.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: Simon Kirby <sim@hostway.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprtsock.c