Re: [PATCH v10 09/19] qspinlock: Prepare for unfair lock support

2014-05-10 Thread Peter Zijlstra
On Fri, May 09, 2014 at 09:19:32PM -0400, Waiman Long wrote: > On 05/08/2014 03:06 PM, Peter Zijlstra wrote: > >On Wed, May 07, 2014 at 11:01:37AM -0400, Waiman Long wrote: > >>If unfair lock is supported, the lock acquisition loop at the end of > >>the queue_spin_lock_slowpath() function may need

Re: [PATCH v10 09/19] qspinlock: Prepare for unfair lock support

2014-05-09 Thread Waiman Long
On 05/08/2014 03:06 PM, Peter Zijlstra wrote: On Wed, May 07, 2014 at 11:01:37AM -0400, Waiman Long wrote: If unfair lock is supported, the lock acquisition loop at the end of the queue_spin_lock_slowpath() function may need to detect the fact the lock can be stolen. Code are added for the stole

Re: [PATCH v10 09/19] qspinlock: Prepare for unfair lock support

2014-05-08 Thread Peter Zijlstra
On Wed, May 07, 2014 at 11:01:37AM -0400, Waiman Long wrote: > If unfair lock is supported, the lock acquisition loop at the end of > the queue_spin_lock_slowpath() function may need to detect the fact > the lock can be stolen. Code are added for the stolen lock detection. > > A new qhead macro is