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: Jiri Slaby <[email protected]>
  • Loading branch information
trondmypd authored and Jiri Slaby committed Jun 9, 2014
1 parent e663f78 commit ff1a931
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 @@ -1100,6 +1100,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 ff1a931

Please sign in to comment.