diff options
author | Trond Myklebust | 2008-02-22 23:06:55 +0100 |
---|---|---|
committer | Trond Myklebust | 2008-02-29 08:17:27 +0100 |
commit | f6a1cc89309f0ae847a9b6fe418d1c4215e5bc55 (patch) | |
tree | 4f5d585dd901718d66d9c354625f9a0bc85c234d /fs/nfs/nfs4state.c | |
parent | SUNRPC: Run rpc timeout functions as callbacks instead of in softirqs (diff) | |
download | kernel-qcow2-linux-f6a1cc89309f0ae847a9b6fe418d1c4215e5bc55.tar.gz kernel-qcow2-linux-f6a1cc89309f0ae847a9b6fe418d1c4215e5bc55.tar.xz kernel-qcow2-linux-f6a1cc89309f0ae847a9b6fe418d1c4215e5bc55.zip |
SUNRPC: Add a (empty for the moment) destructor for rpc_wait_queues
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index a2ef02824aa8..7775435ea7a5 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -292,8 +292,10 @@ struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *server, struct spin_unlock(&clp->cl_lock); if (sp == new) get_rpccred(cred); - else + else { + rpc_destroy_wait_queue(&new->so_sequence.wait); kfree(new); + } return sp; } @@ -310,6 +312,7 @@ void nfs4_put_state_owner(struct nfs4_state_owner *sp) return; nfs4_remove_state_owner(clp, sp); spin_unlock(&clp->cl_lock); + rpc_destroy_wait_queue(&sp->so_sequence.wait); put_rpccred(cred); kfree(sp); } @@ -529,6 +532,7 @@ static void nfs4_free_lock_state(struct nfs4_lock_state *lsp) spin_lock(&clp->cl_lock); nfs_free_unique_id(&clp->cl_lockowner_id, &lsp->ls_id); spin_unlock(&clp->cl_lock); + rpc_destroy_wait_queue(&lsp->ls_sequence.wait); kfree(lsp); } |