diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-11-05 17:42:39 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:05:25 -0500 |
commit | 3b948ae5be5e22532584113e2e02029519bbad8f (patch) | |
tree | 3bfa346bfbc9808c164d3d36af29a2090a5a0628 /include | |
parent | 67a391d72ca7efb387c30ec761a487e50a3ff085 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 6f524a9e7fd0..afb9e6ad7fe0 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -257,6 +257,7 @@ void xprt_force_disconnect(struct rpc_xprt *xprt); | |||
257 | #define XPRT_CLOSE_WAIT (3) | 257 | #define XPRT_CLOSE_WAIT (3) |
258 | #define XPRT_BOUND (4) | 258 | #define XPRT_BOUND (4) |
259 | #define XPRT_BINDING (5) | 259 | #define XPRT_BINDING (5) |
260 | #define XPRT_CLOSING (6) | ||
260 | 261 | ||
261 | static inline void xprt_set_connected(struct rpc_xprt *xprt) | 262 | static inline void xprt_set_connected(struct rpc_xprt *xprt) |
262 | { | 263 | { |