diff options
author | Michel Lespinasse <[email protected]> | 2013-05-07 06:45:55 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-05-07 07:20:16 -0700 |
commit | 5ede972df1cd9294c82e9515949fd2103be81d7b (patch) | |
tree | 2c6df4c16fbe4430ea2723f2aec284105aab08db /lib/mpi/mpi-bit.c | |
parent | ed00f64346631dff035adfb9b0240daaa8b46c4e (diff) |
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 <[email protected]>
Reviewed-by: Peter Hurley <[email protected]>
Acked-by: Davidlohr Bueso <[email protected]>
Acked-by: Rik van Riel <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions