All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] x86, ticketlock: spin_unlock_wait() can livelock
@ 2014-12-01 21:33 Oleg Nesterov
  2014-12-01 21:34 ` [PATCH 1/1] " Oleg Nesterov
  0 siblings, 1 reply; 6+ messages in thread
From: Oleg Nesterov @ 2014-12-01 21:33 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Jeremy Fitzhardinge, Linus Torvalds, Paul E.McKenney,
	Peter Zijlstra, Thomas Gleixner, Waiman Long, linux-kernel

Please review, I'm afraid I could miss something.

OTOH, this almost looks like a bug to me. And in fact I have a bug
report which looks as if spin_unlock_wait() actually spins "forever"
until the system panics, although most probably the are other problems
in kernel/sched which lead to rq->lock contention.

Do we need a barrier() in arch_spin_unlock_wait() ? I guess no, and
the current code doesn't have it.

Perhaps it should use __ticket_lock_spinning() like arch_spin_lock() ?

And probably we should add the lockdep annotations.

Oleg.


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

end of thread, other threads:[~2014-12-09 10:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-01 21:33 [PATCH 0/1] x86, ticketlock: spin_unlock_wait() can livelock Oleg Nesterov
2014-12-01 21:34 ` [PATCH 1/1] " Oleg Nesterov
2014-12-01 21:49   ` Linus Torvalds
2014-12-01 22:09     ` Oleg Nesterov
2014-12-01 22:23       ` Linus Torvalds
2014-12-09 10:17   ` [tip:core/locking] x86/ticketlock: Fix spin_unlock_wait() livelock tip-bot for Oleg Nesterov

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.