]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arm64: rwlocks: don't fail trylock purely due to contention
authorWill Deacon <will.deacon@arm.com>
Wed, 22 Jul 2015 17:25:52 +0000 (18:25 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 13:26:34 +0000 (14:26 +0100)
commit9511ca19dafbd503fb467d451fe331a6008f08cf
tree315f497d0d6f578a7e400c7834560164bd097097
parentfc9eb93cd4c5d819e9a68a7906d78ce37f42d8cd
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>
arch/arm64/include/asm/spinlock.h