NFSd: call rpc_destroy_wait_queue() from free_client()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 18 Apr 2014 18:43:57 +0000 (14:43 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 6 May 2014 16:38:49 +0000 (12:38 -0400)
Mainly to ensure that we don't leave any hanging timers.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index 230d21cb17170b9bd20314f2ea25a70c9e25ff2d..32b699bebb9c3e7281ba58e1d123dc6c2f0ce361 100644 (file)
@@ -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);