SUNRPC: Allow the client to detect if the TCP connection is closed
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 5 Nov 2007 22:42:39 +0000 (17:42 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 30 Jan 2008 07:05:25 +0000 (02:05 -0500)
commit3b948ae5be5e22532584113e2e02029519bbad8f
tree3bfa346bfbc9808c164d3d36af29a2090a5a0628
parent67a391d72ca7efb387c30ec761a487e50a3ff085
SUNRPC: Allow the client to detect if the TCP connection is closed

Add an xprt->state bit to enable the TCP ->state_change() method to signal
whether or not the TCP connection is in the process of closing down.
This will to be used by the reconnection logic in a separate patch.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/xprt.h
net/sunrpc/xprtsock.c