Messages in this thread | | | Date | Wed, 10 Aug 2016 13:51:14 -0400 | From | Waiman Long <> | Subject | Re: [PATCH v4 3/3] locking/mutex: Ensure forward progress of waiter-spinner |
| |
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
| |