]> git.itanic.dy.fi Git - linux-stable/commitdiff
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)
committerJiri Slaby <jslaby@suse.cz>
Mon, 9 Jun 2014 13:53:32 +0000 (15:53 +0200)
commit 4cb57e3032d4e4bf5e97780e9907da7282b02b0c upstream.

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

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/nfsd/nfs4state.c

index 7a32d576ed7e0a74a87edf40239f0d6cf1591699..b21ed5e5b369a124a88d5b6f745c5037271919bc 100644 (file)
@@ -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);