diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-11-06 10:18:36 -0500 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2008-01-30 02:05:24 -0500 |
commit | 66af1e558538137080615e7ad6d1f2f80862de01 (patch) | |
tree | f5f9680b86846d4df8312cd9bd729d6e10c7b5e8 /include | |
parent | ef818a28fac9bd214e676986d8301db0582b92a9 (diff) |
SUNRPC: Fix a race in xs_tcp_state_change()
When scheduling the autoclose RPC call, we want to ensure that we don't
race against the test_bit() call in xprt_clear_locked().
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 30b17b3bc1a..6f524a9e7fd 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -246,6 +246,7 @@ struct rpc_rqst * xprt_lookup_rqst(struct rpc_xprt *xprt, __be32 xid); | |||
246 | void xprt_complete_rqst(struct rpc_task *task, int copied); | 246 | void xprt_complete_rqst(struct rpc_task *task, int copied); |
247 | void xprt_release_rqst_cong(struct rpc_task *task); | 247 | void xprt_release_rqst_cong(struct rpc_task *task); |
248 | void xprt_disconnect(struct rpc_xprt *xprt); | 248 | void xprt_disconnect(struct rpc_xprt *xprt); |
249 | void xprt_force_disconnect(struct rpc_xprt *xprt); | ||
249 | 250 | ||
250 | /* | 251 | /* |
251 | * Reserved bit positions in xprt->state | 252 | * Reserved bit positions in xprt->state |