All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] locking/spinlock_debug: Change it to a mostly fair lock
@ 2017-02-01 18:26 Waiman Long
  2017-02-01 18:26 ` [PATCH 1/2] locking/spinlock_debug: Reduce lockup suspected message clutter Waiman Long
  2017-02-01 18:26 ` [PATCH 2/2] locking/spinlock_debug: Reduce lock cacheline contention Waiman Long
  0 siblings, 2 replies; 4+ messages in thread
From: Waiman Long @ 2017-02-01 18:26 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar; +Cc: linux-kernel, Waiman Long

The current debug spinlock implementation is a TATAS unfair lock. This
can occasionally lead to system lockup with a debug kernel because
of the unfairness of the lock rather than inherent locking problem.

This patch set changes the debug spinlock implementation to a
mostly fair spinlock based on the MCS lock similar to what is done
in qspinlock.

Waiman Long (2):
  locking/spinlock_debug: Reduce lockup suspected message clutter
  locking/spinlock_debug: Reduce lock cacheline contention

 include/linux/spinlock_types.h  |  8 +++--
 kernel/locking/spinlock_debug.c | 73 ++++++++++++++++++++++++++++++-----------
 2 files changed, 58 insertions(+), 23 deletions(-)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-01 19:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-01 18:26 [PATCH 0/2] locking/spinlock_debug: Change it to a mostly fair lock Waiman Long
2017-02-01 18:26 ` [PATCH 1/2] locking/spinlock_debug: Reduce lockup suspected message clutter Waiman Long
2017-02-01 18:26 ` [PATCH 2/2] locking/spinlock_debug: Reduce lock cacheline contention Waiman Long
2017-02-01 19:43   ` kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.