]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGuangyu Sun <guangyu.sun@oracle.com>
Tue, 6 Nov 2012 00:27:13 +0000 (16:27 -0800)
commit5038756b2a31c0bc37df76cc44ed109d712b75a0
treee1875119407a89758048385a4d75a47430bdd41d
parentca2cf230e75459484ef7c994519c0133e15b117a
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>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
net/sunrpc/xprtsock.c