Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180364
b: refs/heads/master
c: 0b94a90
h: refs/heads/master
v: v3
  • Loading branch information
Wengang Wang authored and Joel Becker committed Feb 3, 2010
1 parent a39be2c commit 4c80e4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 34e6c59af06cbca07b1490ec0015ea2d303470d3
refs/heads/master: 0b94a909eb2e2f6990d05fd486a0cb4902ef1ae7
5 changes: 3 additions & 2 deletions trunk/fs/ocfs2/dlmglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,8 +907,6 @@ static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres,

assert_spin_locked(&lockres->l_lock);

lockres_or_flags(lockres, OCFS2_LOCK_BLOCKED);

if (level > lockres->l_blocking) {
/* only schedule a downconvert if we haven't already scheduled
* one that goes low enough to satisfy the level we're
Expand All @@ -921,6 +919,9 @@ static int ocfs2_generic_handle_bast(struct ocfs2_lock_res *lockres,
lockres->l_blocking = level;
}

if (needs_downconvert)
lockres_or_flags(lockres, OCFS2_LOCK_BLOCKED);

mlog_exit(needs_downconvert);
return needs_downconvert;
}
Expand Down

0 comments on commit 4c80e4c

Please sign in to comment.