git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rwsem: Test for no active locks in __rwsem_do_wake undo code
[pandora-kernel.git]
/
lib
/
rwsem.c
diff --git
a/lib/rwsem.c
b/lib/rwsem.c
index
3e3365e
..
ceba8e2
100644
(file)
--- a/
lib/rwsem.c
+++ b/
lib/rwsem.c
@@
-136,9
+136,10
@@
__rwsem_do_wake(struct rw_semaphore *sem, int downgrading)
out:
return sem;
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:
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;
}
goto out;
goto try_again;
}