summary refs log tree commit diff
path: root/kernel/locking/mcs_spinlock.h
diff options
context:
space:
mode:
authorDavidlohr Bueso <davidlohr@hp.com>2014-07-30 13:41:51 -0700
committerIngo Molnar <mingo@kernel.org>2014-08-13 10:31:59 +0200
commit42fa566bd74aa7b95413fb00611ec983b488222d (patch)
treeed8785c7eb273aca842fc78972e7904a247ae28e /kernel/locking/mcs_spinlock.h
parent242489cfe97d44290e7f88b12591fab6c0819045 (diff)
downloadlinux-42fa566bd74aa7b95413fb00611ec983b488222d.tar.gz
locking/mutexes: Document quick lock release when unlocking
When unlocking, we always want to reach the slowpath with the lock's counter
indicating it is unlocked. -- as returned by the asm fastpath call or by
explicitly setting it. While doing so, at least in theory, we can optimize
and allow faster lock stealing.

When unlocking, we always want to reach the slowpath with the lock's counter
indicating it is unlocked. -- as returned by the asm fastpath call or by
explicitly setting it. While doing so, at least in theory, we can optimize
and allow faster lock stealing.

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: jason.low2@hp.com
Cc: aswin@hp.com
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1406752916-3341-2-git-send-email-davidlohr@hp.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/locking/mcs_spinlock.h')
0 files changed, 0 insertions, 0 deletions