Re: [PATCH] locking/mutex: Refactor mutex_spin_on_owner()

2015-03-16 Thread Ingo Molnar
* Jason Low wrote: > On Tue, 2015-03-10 at 09:11 +0100, Ingo Molnar wrote: > > * Jason Low wrote: > > > > > This patch applies on top of tip. > > > > > > --- > > > Similar to what Linus suggested for rwsem_spin_on_owner(), in >

Re: [PATCH] locking/mutex: Refactor mutex_spin_on_owner()

2015-03-16 Thread Ingo Molnar
* Jason Low jason.l...@hp.com wrote: On Tue, 2015-03-10 at 09:11 +0100, Ingo Molnar wrote: * Jason Low jason.l...@hp.com wrote: This patch applies on top of tip. --- Similar to what Linus suggested for

Re: [PATCH] locking/mutex: Refactor mutex_spin_on_owner()

2015-03-10 Thread Jason Low
On Tue, 2015-03-10 at 09:11 +0100, Ingo Molnar wrote: > * Jason Low wrote: > > > This patch applies on top of tip. > > > > --- > > Similar to what Linus suggested for rwsem_spin_on_owner(), in > > mutex_spin_on_owner(), instead of

Re: [PATCH] locking/mutex: Refactor mutex_spin_on_owner()

2015-03-10 Thread Ingo Molnar
* Jason Low wrote: > This patch applies on top of tip. > > --- > Similar to what Linus suggested for rwsem_spin_on_owner(), in > mutex_spin_on_owner(), instead of having while (true) and breaking > out of the spin loop on

Re: [PATCH] locking/mutex: Refactor mutex_spin_on_owner()

2015-03-10 Thread Jason Low
On Tue, 2015-03-10 at 09:11 +0100, Ingo Molnar wrote: * Jason Low jason.l...@hp.com wrote: This patch applies on top of tip. --- Similar to what Linus suggested for rwsem_spin_on_owner(), in mutex_spin_on_owner(),

Re: [PATCH] locking/mutex: Refactor mutex_spin_on_owner()

2015-03-10 Thread Ingo Molnar
* Jason Low jason.l...@hp.com wrote: This patch applies on top of tip. --- Similar to what Linus suggested for rwsem_spin_on_owner(), in mutex_spin_on_owner(), instead of having while (true) and breaking out of the spin loop

[PATCH] locking/mutex: Refactor mutex_spin_on_owner()

2015-03-09 Thread Jason Low
This patch applies on top of tip. --- Similar to what Linus suggested for rwsem_spin_on_owner(), in mutex_spin_on_owner(), instead of having while (true) and breaking out of the spin loop on lock->owner != owner, we can have the loop

[PATCH] locking/mutex: Refactor mutex_spin_on_owner()

2015-03-09 Thread Jason Low
This patch applies on top of tip. --- Similar to what Linus suggested for rwsem_spin_on_owner(), in mutex_spin_on_owner(), instead of having while (true) and breaking out of the spin loop on lock-owner != owner, we can have the loop