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

From: Imre Deak
Date: Thu Aug 18 2016 - 22:39:53 EST


On to, 2016-08-18 at 17:58 +0200, Peter Zijlstra wrote:
> On Thu, Aug 11, 2016 at 11:01:27AM -0400, Waiman Long wrote:
> > The following is the updated patch that should fix the build error
> > in
> > non-x86 platform.
> >
>
> This patch was whitespace challenged, but I think I munged it
> properly.
>
> I've also stuck something based on Jason's patch on top. Please have
> a
> look at:
>
> Â https://git.kernel.org/cgit/linux/kernel/git/peterz/queue.git/log/?
> h=locking/core
>
> compile tested only so far..

It works for me and fixes my test case.

Nitpick: "Try-acquire now that we got woken at the head of the queue."
would be more accurate by also adding "or received a signal."

--Imre