RPC: Ensure that we disconnect TCP socket when client requests error out
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 27 Jul 2006 21:22:50 +0000 (17:22 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 3 Aug 2006 20:56:55 +0000 (16:56 -0400)
commite0ab53deaa91293a7958d63d5a2cf4c5645ad6f0
tree1117ac18e263222ad91f3af90ddcaf65f37b79f6
parentf3d43c769d14b7065da7f62ec468b1fcb8cd6e06
RPC: Ensure that we disconnect TCP socket when client requests error out

If we're part way through transmitting a TCP request, and the client
errors, then we need to disconnect and reconnect the TCP socket in order to
avoid confusing the server.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
(cherry picked from 031a50c8b9ea82616abd4a4e18021a25848941ce commit)
include/linux/sunrpc/xprt.h
net/sunrpc/clnt.c
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c