Re: [PATCH-tip] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-09 Thread Waiman Long
On 12/09/2016 11:05 AM, Peter Zijlstra wrote: > On Tue, Dec 06, 2016 at 02:14:42PM -0500, Waiman Long wrote: >> A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more >> relaxed versions to improve performance on architectures that use LL/SC. > I would feel so much better if each

Re: [PATCH-tip] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-09 Thread Waiman Long
On 12/09/2016 11:05 AM, Peter Zijlstra wrote: > On Tue, Dec 06, 2016 at 02:14:42PM -0500, Waiman Long wrote: >> A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more >> relaxed versions to improve performance on architectures that use LL/SC. > I would feel so much better if each

Re: [PATCH-tip] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-09 Thread Peter Zijlstra
On Tue, Dec 06, 2016 at 02:14:42PM -0500, Waiman Long wrote: > A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more > relaxed versions to improve performance on architectures that use LL/SC. I would feel so much better if each change were to have some rationale included. Either

Re: [PATCH-tip] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-09 Thread Peter Zijlstra
On Tue, Dec 06, 2016 at 02:14:42PM -0500, Waiman Long wrote: > A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more > relaxed versions to improve performance on architectures that use LL/SC. I would feel so much better if each change were to have some rationale included. Either

Re: [PATCH-tip] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-07 Thread Pan Xinhui
在 2016/12/7 03:14, Waiman Long 写道: A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more relaxed versions to improve performance on architectures that use LL/SC. Signed-off-by: Waiman Long --- thanks! I apply it on my tree. and the tests is okay. ke

Re: [PATCH-tip] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-07 Thread Pan Xinhui
在 2016/12/7 03:14, Waiman Long 写道: A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more relaxed versions to improve performance on architectures that use LL/SC. Signed-off-by: Waiman Long --- thanks! I apply it on my tree. and the tests is okay. ke

[PATCH-tip] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-06 Thread Waiman Long
A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more relaxed versions to improve performance on architectures that use LL/SC. Signed-off-by: Waiman Long --- kernel/locking/qspinlock_paravirt.h | 36 +++- 1 file changed, 19

[PATCH-tip] locking/pvqspinlock: Relax cmpxchg's to improve performance on some archs

2016-12-06 Thread Waiman Long
A number of cmpxchg calls in qspinlock_paravirt.h were replaced by more relaxed versions to improve performance on architectures that use LL/SC. Signed-off-by: Waiman Long --- kernel/locking/qspinlock_paravirt.h | 36 +++- 1 file changed, 19 insertions(+), 17