diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2009-02-23 21:42:10 -0800 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-29 16:45:03 -0400 |
commit | 3cef9ab266a932899e756f7e1ea7a988a97bf3b2 (patch) | |
tree | a1fff617c936214a9e95bdec760904a28859126b /fs/nfsd/nfs4state.c | |
parent | ecdd03b7914c91ef849e49c4d466c87f4981b5cd (diff) |
nfsd4: lookup up callback cred only once
Lookup the callback cred once and then use it for all subsequent
callbacks.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 7e1fcc3aade..b205c7d7bc6 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -643,6 +643,10 @@ shutdown_callback_client(struct nfs4_client *clp) clp->cl_callback.cb_client = NULL; rpc_shutdown_client(clnt); } + if (clp->cl_callback.cb_cred) { + put_rpccred(clp->cl_callback.cb_cred); + clp->cl_callback.cb_cred = NULL; + } } static inline void |