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

2014-06-04 Thread Jason Low
On Wed, 2014-06-04 at 13:11 -0700, Davidlohr Bueso wrote: > 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

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

2014-06-04 Thread Davidlohr Bueso
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.

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

2014-06-04 Thread Jason Low
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