Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135890
b: refs/heads/master
c: a536e38
h: refs/heads/master
v: v3
  • Loading branch information
David Teigland committed Mar 11, 2009
1 parent 303b88a commit 2bf439a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 43279e5376017c40b4be9af5bc79cbb4ef6f53d7
refs/heads/master: a536e38125fe5da8ed49690f30c30a8f651cf1f5
7 changes: 7 additions & 0 deletions trunk/fs/dlm/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2186,6 +2186,13 @@ static int validate_unlock_args(struct dlm_lkb *lkb, struct dlm_args *args)
goto out;
}

/* there's nothing to cancel */
if (lkb->lkb_status == DLM_LKSTS_GRANTED &&
!lkb->lkb_wait_type) {
rv = -EBUSY;
goto out;
}

switch (lkb->lkb_wait_type) {
case DLM_MSG_LOOKUP:
case DLM_MSG_REQUEST:
Expand Down

0 comments on commit 2bf439a

Please sign in to comment.