Re: [PATCH -v4 5/8] locking/mutex: Add lock handoff to avoid starvation
From: Peter Zijlstra
Date: Tue Oct 18 2016 - 09:03:09 EST
On Mon, Oct 17, 2016 at 03:07:54PM -0400, Waiman Long wrote:
> One more thing, I think it may be worthwhile to add another comment about
> what happens when the HANDOFF bit was set while we take the error path (goto
> err). As the actual handoff is serialized by the wait_lock, the code will
> still do the right thing. Either the next one in the queue will be handed
> off or it will be unlocked if the queue is empty.
Doesn't the next patch add just such a comment?