diff options
author | 2013-05-07 06:45:52 -0700 | |
---|---|---|
committer | 2013-05-07 07:20:16 -0700 | |
commit | da16922cc031b9c0221c836994276ab193b31de8 (patch) | |
tree | 8765a482ab31db66f3cc9cab83bf67eaafe88f75 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rwsem: move rwsem_down_failed_common code into rwsem_down_{read,write}_failed (diff) | |
download | linux-dev-da16922cc031b9c0221c836994276ab193b31de8.tar.xz linux-dev-da16922cc031b9c0221c836994276ab193b31de8.zip |
rwsem: simplify rwsem_down_read_failed
When trying to acquire a read lock, the RWSEM_ACTIVE_READ_BIAS
adjustment doesn't cause other readers to block, so we never have to
worry about waking them back after canceling this adjustment in
rwsem_down_read_failed().
We also never want to steal the lock in rwsem_down_read_failed(), so we
don't have to grab the wait_lock either.
Signed-off-by: Michel Lespinasse <walken@google.com>
Reviewed-by: Rik van Riel <riel@redhat.com>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Acked-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions