git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7d2c57
)
rwsem: skip initial trylock in rwsem_down_write_failed
author
Michel Lespinasse
<walken@google.com>
Tue, 7 May 2013 13:45:57 +0000
(06:45 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 7 May 2013 14:20:16 +0000
(07:20 -0700)
We can skip the initial trylock in rwsem_down_write_failed() if there
are known active lockers already, thus saving one likely-to-fail
cmpxchg.
Signed-off-by: Michel Lespinasse <walken@google.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Acked-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/rwsem.c
patch
|
blob
|
history
diff --cc
lib/rwsem.c
Simple merge