Re: [PATCH v4 08/16] locking/rwsem: Make rwsem_spin_on_owner() return owner state
From: Waiman Long
Date: Wed Apr 17 2019 - 12:53:55 EST
On 04/17/2019 06:19 AM, Peter Zijlstra wrote:
> On Sat, Apr 13, 2019 at 01:22:51PM -0400, Waiman Long wrote:
>> In the special case that there is no active lock and the handoff bit
>> is set, optimistic spinning has to be stopped.
> This makes me think this should've been _before_ you added the handoff
> bit. So that when you introduce the handoff, everything is solid.
I can move it forward if you think it is the right move.