commit | 9511ca19dafbd503fb467d451fe331a6008f08cf | [log] [tgz] |
---|---|---|
author | Will Deacon <will.deacon@arm.com> | Wed Jul 22 18:25:52 2015 +0100 |
committer | Will Deacon <will.deacon@arm.com> | Mon Jul 27 14:26:34 2015 +0100 |
tree | 315f497d0d6f578a7e400c7834560164bd097097 | |
parent | fc9eb93cd4c5d819e9a68a7906d78ce37f42d8cd [diff] |
arm64: rwlocks: don't fail trylock purely due to contention STXR can fail for a number of reasons, so don't fail an rwlock trylock operation simply because the STXR reported failure. I'm not aware of any issues with the current code, but this makes it consistent with spin_trylock and also other architectures (e.g. arch/arm). Reported-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>