[PATCH v2 01/20] arm64: rwlocks: don't fail trylock purely due to contention

Catalin Marinas catalin.marinas at arm.com
Fri Jul 24 04:14:05 PDT 2015


On Fri, Jul 24, 2015 at 11:41:52AM +0100, Will Deacon wrote:
> 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 at arm.com>
> Signed-off-by: Will Deacon <will.deacon at arm.com>

Reviewed-by: Catalin Marinas <catalin.marinas at arm.com>



More information about the linux-arm-kernel mailing list