|
@@ -4766,9 +4766,9 @@ static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock *
|
|
|
if (status != 0)
|
|
|
goto out;
|
|
|
/* Is this a delegated lock? */
|
|
|
- if (test_bit(NFS_DELEGATED_STATE, &state->flags))
|
|
|
- goto out;
|
|
|
lsp = request->fl_u.nfs4_fl.owner;
|
|
|
+ if (test_bit(NFS_LOCK_INITIALIZED, &lsp->ls_flags) == 0)
|
|
|
+ goto out;
|
|
|
seqid = nfs_alloc_seqid(&lsp->ls_seqid, GFP_KERNEL);
|
|
|
status = -ENOMEM;
|
|
|
if (seqid == NULL)
|