Re: [PATCH -tip/master 5/7] locking/mutex: Use MUTEX_SPIN_ON_OWNER when appropriate

2014-07-30 Thread Jason Low
On Sun, 2014-07-27 at 22:18 -0700, Davidlohr Bueso wrote: > 4badad35 (locking/mutex: Disable optimistic spinning on some > architectures) added a ARCH_SUPPORTS_ATOMIC_RMW flag to > disable the mutex optimistic feature on specific archs. > > Because CONFIG_MUTEX_SPIN_ON_OWNER only depended on DEBUG

[PATCH -tip/master 5/7] locking/mutex: Use MUTEX_SPIN_ON_OWNER when appropriate

2014-07-27 Thread Davidlohr Bueso
4badad35 (locking/mutex: Disable optimistic spinning on some architectures) added a ARCH_SUPPORTS_ATOMIC_RMW flag to disable the mutex optimistic feature on specific archs. Because CONFIG_MUTEX_SPIN_ON_OWNER only depended on DEBUG and SMP, it was ok to have the ->owner field conditional a bit flex