Skip to content

Commit

Permalink
NFSd: call rpc_destroy_wait_queue() from free_client()
Browse files Browse the repository at this point in the history
commit 4cb57e3 upstream.

Mainly to ensure that we don't leave any hanging timers.

Signed-off-by: Trond Myklebust <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
trondmypd authored and gregkh committed Jun 7, 2014
1 parent 25bd4bc commit eac3242
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ free_client(struct nfs4_client *clp)
WARN_ON_ONCE(atomic_read(&ses->se_ref));
free_session(ses);
}
rpc_destroy_wait_queue(&clp->cl_cb_waitq);
free_svc_cred(&clp->cl_cred);
kfree(clp->cl_name.data);
idr_destroy(&clp->cl_stateids);
Expand Down

0 comments on commit eac3242

Please sign in to comment.