SUNRPC: Ensure we set XPRT_CLOSING only after we've sent a tcp FIN...
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Mar 2009 18:37:58 +0000 (14:37 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 23:06:09 +0000 (16:06 -0700)
commit905e167d6445fb70c40d91c100cf88d7ad78a6ed
treeda53de561ab4ce3e1b77871251cb3a3d557818b0
parent33a03f71c22bde120f8915bf0125ef6f40a55b46
SUNRPC: Ensure we set XPRT_CLOSING only after we've sent a tcp FIN...

commit 670f94573104b4a25525d3fcdcd6496c678df172 upstream.

...so that we can distinguish between when we need to shutdown and when we
don't. Also remove the call to xs_tcp_shutdown() from xs_tcp_connect(),
since xprt_connect() makes the same test.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sunrpc/xprtsock.c