Re: [tip:locking/urgent] locking/mutex: Disable optimistic spinning on some architectures

2014-07-17 Thread Davidlohr Bueso
On Thu, 2014-07-17 at 20:07 -0700, Davidlohr Bueso wrote: > On Wed, 2014-07-16 at 12:24 -0700, tip-bot for Peter Zijlstra wrote: > > Commit-ID: 4badad352a6bb202ec68afa7a574c0bb961e5ebc > > Gitweb: > > http://git.kernel.org/tip/4badad352a6bb202ec68afa7a574c0bb961e5ebc > > Author: Peter Zij

Re: [tip:locking/urgent] locking/mutex: Disable optimistic spinning on some architectures

2014-07-17 Thread Davidlohr Bueso
On Wed, 2014-07-16 at 12:24 -0700, tip-bot for Peter Zijlstra wrote: > Commit-ID: 4badad352a6bb202ec68afa7a574c0bb961e5ebc > Gitweb: http://git.kernel.org/tip/4badad352a6bb202ec68afa7a574c0bb961e5ebc > Author: Peter Zijlstra > AuthorDate: Fri, 6 Jun 2014 19:53:16 +0200 > Committer: Ingo

Re: [tip:locking/urgent] locking/mutex: Disable optimistic spinning on some architectures

2014-07-17 Thread Christian Borntraeger
On 17/07/14 13:51, Christian Borntraeger wrote: > select ARCH_HAVE_NMI_SAFE_CMPXCHG > + select ARCH_SUPPORTS_ATOMIC_RMW This begs the question, if both defines were created for the same reason and could be combined. Christian -- To unsubscribe from this list: send the line "unsubscri

Re: [tip:locking/urgent] locking/mutex: Disable optimistic spinning on some architectures

2014-07-17 Thread Christian Borntraeger
s390: s390 also supports proper atomic read modify write, There is no need to disable mutex spinning. The instructions CS,CSG and friends provide the proper guarantees. (We dont implement cmpxchg with locks). Signed-off-by: Christian Borntraeger --- arch/s390/Kconfig |1 + 1 file changed,

[tip:locking/urgent] locking/mutex: Disable optimistic spinning on some architectures

2014-07-16 Thread tip-bot for Peter Zijlstra
Commit-ID: 4badad352a6bb202ec68afa7a574c0bb961e5ebc Gitweb: http://git.kernel.org/tip/4badad352a6bb202ec68afa7a574c0bb961e5ebc Author: Peter Zijlstra AuthorDate: Fri, 6 Jun 2014 19:53:16 +0200 Committer: Ingo Molnar CommitDate: Wed, 16 Jul 2014 14:57:07 +0200 locking/mutex: Disable opt