]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
locking/mutexes: Correct documentation on mutex optimistic spinning
authorJason Low <jason.low2@hp.com>
Wed, 11 Jun 2014 18:37:20 +0000 (11:37 -0700)
committerIngo Molnar <mingo@kernel.org>
Sat, 5 Jul 2014 09:25:41 +0000 (11:25 +0200)
commit0c3c0f0d6e56422cef60a33726d062e9923005c3
tree612fd6fff48435b2a49f8e2c26a08a576fdb2206
parent6cc620bc8e9b521e61f04eefbec0c41c01fb03b9
locking/mutexes: Correct documentation on mutex optimistic spinning

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>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: akpm@linux-foundation.org
Cc: tim.c.chen@linux.intel.com
Cc: paulmck@linux.vnet.ibm.com
Cc: rostedt@goodmis.org
Cc: Waiman.Long@hp.com
Cc: scott.norton@hp.com
Cc: aswin@hp.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1402511843-4721-2-git-send-email-jason.low2@hp.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/mutex.c