Re: [PATCH] sparc32: Implement xchg and atomic_xchg using ATOMIC_HASH locks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Andreas Larsson <andreas@xxxxxxxxxxx>
Date: Wed,  5 Nov 2014 15:52:08 +0100

> Atomicity between xchg and cmpxchg cannot be guaranteed when xchg is
> implemented with a swap and cmpxchg is implemented with locks.
> Without this, e.g. mcs_spin_lock and mcs_spin_unlock are broken.
> 
> Signed-off-by: Andreas Larsson <andreas@xxxxxxxxxxx>

Unfortunate, but obviously necessary.

Applied and queued up for -stable, thanks!
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux