Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38761
b: refs/heads/master
c: 2b4e926
h: refs/heads/master
i:
  38759: a449d4f
v: v3
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Jul 26, 2006
1 parent 9ac3e27 commit 2bbbb0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 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: f7da790d743d2f0b4f39e4fa442079b3b54f3bef
refs/heads/master: 2b4e926aab7c854a536beee6ba8b9a78a9e00316
13 changes: 9 additions & 4 deletions trunk/fs/dlm/lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -3366,19 +3366,24 @@ static struct dlm_rsb *find_purged_rsb(struct dlm_ls *ls, int bucket)
void dlm_grant_after_purge(struct dlm_ls *ls)
{
struct dlm_rsb *r;
int i;
int bucket = 0;

for (i = 0; i < ls->ls_rsbtbl_size; i++) {
r = find_purged_rsb(ls, i);
if (!r)
while (1) {
r = find_purged_rsb(ls, bucket);
if (!r) {
if (bucket == ls->ls_rsbtbl_size - 1)
break;
bucket++;
continue;
}
lock_rsb(r);
if (is_master(r)) {
grant_pending_locks(r);
confirm_master(r, 0);
}
unlock_rsb(r);
put_rsb(r);
schedule();
}
}

Expand Down

0 comments on commit 2bbbb0d

Please sign in to comment.