]> 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:27:58 +0000 (09:27 -0700)
commitb77a7a0e9f3ed51b523857f26c42e350faf43add
tree7333f7635b06fd46713006a4b5842697fe87d375
parent0bd1ed9ead1a2b7fc1534bff04729c3712a6fb25
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