Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190799
b: refs/heads/master
c: 91af708
h: refs/heads/master
i:
  190797: e27b54a
  190795: e513b64
  190791: 89c845d
  190783: 6abd9c2
v: v3
  • Loading branch information
Michel Lespinasse authored and Linus Torvalds committed May 13, 2010
1 parent fd605c8 commit 8be4469
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: cea0d767c29669bf89f86e4aee46ef462d2ebae8
refs/heads/master: 91af70814105f4c05e6e11b51c3269907b71794b
5 changes: 3 additions & 2 deletions trunk/lib/rwsem.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ __rwsem_do_wake(struct rw_semaphore *sem, int downgrading)
out:
return sem;

/* undo the change to count, but check for a transition 1->0 */
/* undo the change to the active count, but check for a transition
* 1->0 */
undo:
if (rwsem_atomic_update(-RWSEM_ACTIVE_BIAS, sem) != 0)
if (rwsem_atomic_update(-RWSEM_ACTIVE_BIAS, sem) & RWSEM_ACTIVE_MASK)
goto out;
goto try_again;
}
Expand Down

0 comments on commit 8be4469

Please sign in to comment.