NFSD: Adjust cb_shutdown tracepoint
[ Upstream commit b200f0e35338b052976b6c5759e4f77a3013e6f6 ] Show when the upper layer requested a shutdown. RPC tracepoints can already show when rpc_shutdown_client() is called. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
47216d4b17
commit
953f27e883
1 changed files with 3 additions and 1 deletions
|
@ -1233,6 +1233,9 @@ void nfsd4_destroy_callback_queue(void)
|
||||||
/* must be called under the state lock */
|
/* must be called under the state lock */
|
||||||
void nfsd4_shutdown_callback(struct nfs4_client *clp)
|
void nfsd4_shutdown_callback(struct nfs4_client *clp)
|
||||||
{
|
{
|
||||||
|
if (clp->cl_cb_state != NFSD4_CB_UNKNOWN)
|
||||||
|
trace_nfsd_cb_shutdown(clp);
|
||||||
|
|
||||||
set_bit(NFSD4_CLIENT_CB_KILL, &clp->cl_flags);
|
set_bit(NFSD4_CLIENT_CB_KILL, &clp->cl_flags);
|
||||||
/*
|
/*
|
||||||
* Note this won't actually result in a null callback;
|
* Note this won't actually result in a null callback;
|
||||||
|
@ -1278,7 +1281,6 @@ static void nfsd4_process_cb_update(struct nfsd4_callback *cb)
|
||||||
* kill the old client:
|
* kill the old client:
|
||||||
*/
|
*/
|
||||||
if (clp->cl_cb_client) {
|
if (clp->cl_cb_client) {
|
||||||
trace_nfsd_cb_shutdown(clp);
|
|
||||||
rpc_shutdown_client(clp->cl_cb_client);
|
rpc_shutdown_client(clp->cl_cb_client);
|
||||||
clp->cl_cb_client = NULL;
|
clp->cl_cb_client = NULL;
|
||||||
put_cred(clp->cl_cb_cred);
|
put_cred(clp->cl_cb_cred);
|
||||||
|
|
Loading…
Add table
Reference in a new issue