diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sunrpc/xprt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index 8a0629abb86a..4d80a118d538 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
| @@ -86,6 +86,10 @@ struct rpc_rqst { | |||
| 86 | unsigned long rq_majortimeo; /* major timeout alarm */ | 86 | unsigned long rq_majortimeo; /* major timeout alarm */ |
| 87 | unsigned long rq_timeout; /* Current timeout value */ | 87 | unsigned long rq_timeout; /* Current timeout value */ |
| 88 | unsigned int rq_retries; /* # of retries */ | 88 | unsigned int rq_retries; /* # of retries */ |
| 89 | unsigned int rq_connect_cookie; | ||
| 90 | /* A cookie used to track the | ||
| 91 | state of the transport | ||
| 92 | connection */ | ||
| 89 | 93 | ||
| 90 | /* | 94 | /* |
| 91 | * Partial send handling | 95 | * Partial send handling |
| @@ -152,6 +156,9 @@ struct rpc_xprt { | |||
| 152 | unsigned long connect_timeout, | 156 | unsigned long connect_timeout, |
| 153 | bind_timeout, | 157 | bind_timeout, |
| 154 | reestablish_timeout; | 158 | reestablish_timeout; |
| 159 | unsigned int connect_cookie; /* A cookie that gets bumped | ||
| 160 | every time the transport | ||
| 161 | is reconnected */ | ||
| 155 | 162 | ||
| 156 | /* | 163 | /* |
| 157 | * Disconnection of idle transports | 164 | * Disconnection of idle transports |
| @@ -241,6 +248,7 @@ void xprt_complete_rqst(struct rpc_task *task, int copied); | |||
| 241 | void xprt_release_rqst_cong(struct rpc_task *task); | 248 | void xprt_release_rqst_cong(struct rpc_task *task); |
| 242 | void xprt_disconnect_done(struct rpc_xprt *xprt); | 249 | void xprt_disconnect_done(struct rpc_xprt *xprt); |
| 243 | void xprt_force_disconnect(struct rpc_xprt *xprt); | 250 | void xprt_force_disconnect(struct rpc_xprt *xprt); |
| 251 | void xprt_conditional_disconnect(struct rpc_xprt *xprt, unsigned int cookie); | ||
| 244 | 252 | ||
| 245 | /* | 253 | /* |
| 246 | * Reserved bit positions in xprt->state | 254 | * Reserved bit positions in xprt->state |
