Re: [PATCH v4 3/3] locking/mutex: Ensure forward progress of waiter-spinner

From: Waiman Long
Date: Wed Aug 10 2016 - 14:07:32 EST


On 08/10/2016 05:29 AM, Peter Zijlstra wrote:
On Tue, Aug 09, 2016 at 02:00:00PM -0400, Waiman Long wrote:
Alternative might be to use the LSB of mutex::owner, but that's going to
be somewhat icky too.
I was thinking about doing that. However, the owner field is used in quite a
number of places. It may be a bit risky to change all of them.
Agreed.


It will be easier to do that for rwsem as the owner field isn't used for the debug code, unlike the mutex.

Cheers,
Longman