diff options
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 9da4bd55eb30..dc1da2adc459 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -4766,9 +4766,9 @@ static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock * | |||
4766 | if (status != 0) | 4766 | if (status != 0) |
4767 | goto out; | 4767 | goto out; |
4768 | /* Is this a delegated lock? */ | 4768 | /* Is this a delegated lock? */ |
4769 | if (test_bit(NFS_DELEGATED_STATE, &state->flags)) | ||
4770 | goto out; | ||
4771 | lsp = request->fl_u.nfs4_fl.owner; | 4769 | lsp = request->fl_u.nfs4_fl.owner; |
4770 | if (test_bit(NFS_LOCK_INITIALIZED, &lsp->ls_flags) == 0) | ||
4771 | goto out; | ||
4772 | seqid = nfs_alloc_seqid(&lsp->ls_seqid, GFP_KERNEL); | 4772 | seqid = nfs_alloc_seqid(&lsp->ls_seqid, GFP_KERNEL); |
4773 | status = -ENOMEM; | 4773 | status = -ENOMEM; |
4774 | if (seqid == NULL) | 4774 | if (seqid == NULL) |