diff options
author | 2013-05-07 06:45:55 -0700 | |
---|---|---|
committer | 2013-05-07 07:20:16 -0700 | |
commit | 5ede972df1cd9294c82e9515949fd2103be81d7b (patch) | |
tree | 2c6df4c16fbe4430ea2723f2aec284105aab08db /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rwsem: more agressive lock stealing in rwsem_down_write_failed (diff) | |
download | linux-dev-5ede972df1cd9294c82e9515949fd2103be81d7b.tar.xz linux-dev-5ede972df1cd9294c82e9515949fd2103be81d7b.zip |
rwsem: use cmpxchg for trying to steal write lock
Using rwsem_atomic_update to try stealing the write lock forced us to
undo the adjustment in the failure path. We can have simpler and faster
code by using cmpxchg instead.
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions