diff options
author | Benny Halevy <bhalevy@panasas.com> | 2010-05-11 17:14:06 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2010-05-13 11:59:11 -0400 |
commit | ab707e156593ff7fffd615757332dbff6616836a (patch) | |
tree | a9d1c7d851ca178e616f05aab30377ab778762b4 /fs/nfsd/nfs4callback.c | |
parent | d76829889ac4250a18cfcc1a606bb256bb9c570c (diff) |
nfsd4: nfsd4_destroy_session must set callback client under the state lock
nfsd4_set_callback_client must be called under the state lock to atomically
set or unset the callback client and shutting down the previous one.
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r-- | fs/nfsd/nfs4callback.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index 1d5051d46b46..77bc9d3c80fd 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c | |||
@@ -718,6 +718,7 @@ void nfsd4_destroy_callback_queue(void) | |||
718 | destroy_workqueue(callback_wq); | 718 | destroy_workqueue(callback_wq); |
719 | } | 719 | } |
720 | 720 | ||
721 | /* must be called under the state lock */ | ||
721 | void nfsd4_set_callback_client(struct nfs4_client *clp, struct rpc_clnt *new) | 722 | void nfsd4_set_callback_client(struct nfs4_client *clp, struct rpc_clnt *new) |
722 | { | 723 | { |
723 | struct rpc_clnt *old = clp->cl_cb_client; | 724 | struct rpc_clnt *old = clp->cl_cb_client; |