]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/nfs/nfs4state.c
NFSv4: Add support for the RELEASE_LOCKOWNER operation
[net-next-2.6.git] / fs / nfs / nfs4state.c
index 13e17e32e3e42798c80a3b3be7c22e78b1e7df99..13a4f27e72719f7bdf438ce2b7fc6e95bb2c5860 100644 (file)
@@ -701,6 +701,8 @@ void nfs4_put_lock_state(struct nfs4_lock_state *lsp)
        if (list_empty(&state->lock_states))
                clear_bit(LK_STATE_IN_USE, &state->flags);
        spin_unlock(&state->state_lock);
+       if (lsp->ls_flags & NFS_LOCK_INITIALIZED)
+               nfs4_release_lockowner(lsp);
        nfs4_free_lock_state(lsp);
 }