[PATCH v11 08/16] qspinlock: Prepare for unfair lock support

2014-05-30 Thread Waiman Long
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. Signed-off-by: Waiman Long --- kernel/locking/qspinlock.c | 26

[PATCH v11 08/16] qspinlock: Prepare for unfair lock support

2014-05-30 Thread Waiman Long
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. Signed-off-by: Waiman Long waiman.l...@hp.com --- kernel/locking/qspinlock.c | 26