Re: [PATCH] locking/mutex: Reduce chance of setting HANDOFF bit on unlocked mutex

From: Peter Zijlstra
Date: Wed Jun 30 2021 - 10:03:47 EST


On Wed, Jun 30, 2021 at 09:50:11AM -0400, Waiman Long wrote:

> The code looks good to me. It is an even better approach to make sure that
> the HANDOFF will never be set on an unlocked mutex.
>
> Reviewed-by: Waiman Long <longman@xxxxxxxxxx>

Thanks, what about that XXX? Should we not check sigpending before doing
the optimistic spinning thing?