Re: [RFC PATCH 2/3] locking/mutex: Correct documentation on mutex optimistic spinning

Davidlohr Bueso
2014-06-04T20:11:43Z

On Wed, 2014-06-04 at 12:08 -0700, Jason Low wrote:
> The mutex optimistic spinning documentation states that we spin for
> acquisition when we find that there are no pending waiters. However,
> in actuality, whether or not there are waiters for the mutex doesn't
> determine if we will spin for it.
>
> This patch removes that statement and also adds a comment which
> mentions that we spin for the mutex while we don't need to reschedule.
>
> Signed-off-by: Jason Low <jason.low2@hp.com>

Acked-by: Davidlohr Bueso <davidlohr@hp.com>

I think this could go in with v4 of the mutex doc rewrite patch...
guessing for 3.17 now.

Thanks,
Davidlohr