Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38797
b: refs/heads/master
c: 233e515
h: refs/heads/master
i:
  38795: 632e8c7
v: v3
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Aug 24, 2006
1 parent 700a2ea commit 313308e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5888750aad219bec42f3f28354eb230d1a47b89
refs/heads/master: 233e515f4062f99569c24f00ad7429a860b23db4
11 changes: 0 additions & 11 deletions trunk/fs/dlm/recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,22 +473,11 @@ static int recover_locks_queue(struct dlm_rsb *r, struct list_head *head)
return error;
}

static int all_queues_empty(struct dlm_rsb *r)
{
if (!list_empty(&r->res_grantqueue) ||
!list_empty(&r->res_convertqueue) ||
!list_empty(&r->res_waitqueue))
return 0;
return 1;
}

static int recover_locks(struct dlm_rsb *r)
{
int error = 0;

lock_rsb(r);
if (all_queues_empty(r))
goto out;

DLM_ASSERT(!r->res_recover_locks_count, dlm_dump_rsb(r););

Expand Down

0 comments on commit 313308e

Please sign in to comment.