mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] RT: fix spin_trylock_irq
@ 2007-10-11 12:24 Sébastien Dugué
  2007-10-11 14:49 ` Steven Rostedt
  0 siblings, 1 reply; 7+ messages in thread
From: Sébastien Dugué @ 2007-10-11 12:24 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, Steven Rostedt; +Cc: Linux RT Users, linux-kernel


  This patch fixes a bug in spin_trylock_irq() where __spin_trylock_irq() is
picked for regular (non-raw) spinlocks instead of _spin_trylock_irq().

  This results in systematic boot hangs and may have been going unnoticed
for quite some time as it only manifests (aside from a compile warning) when
booting with a NUMA config or when using the Chelsio T3 (cxgb3) driver as
these seems to be the sole users.


Signed-off-by: Sébastien Dugué <sebastien.dugue@bull.net>

---
 include/linux/spinlock.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6.23-rc9-rt2/include/linux/spinlock.h
===================================================================
--- linux-2.6.23-rc9-rt2.orig/include/linux/spinlock.h
+++ linux-2.6.23-rc9-rt2/include/linux/spinlock.h
@@ -501,7 +501,7 @@ do {									\
 
 #define spin_trylock_irq(lock)	\
 	__cond_lock(lock, PICK_SPIN_OP_RET(__spin_trylock_irq,		\
-		__spin_trylock_irq, lock))
+		_spin_trylock_irq, lock))
 
 #define spin_trylock_irqsave(lock, flags) \
 	__cond_lock(lock, PICK_SPIN_OP_RET(__spin_trylock_irqsave, 	\

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

end of thread, other threads:[~2007-10-15 21:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-11 12:24 [PATCH] RT: fix spin_trylock_irq Sébastien Dugué
2007-10-11 14:49 ` Steven Rostedt
2007-10-15 17:44   ` Daniel Walker
2007-10-15 18:14     ` Steven Rostedt
2007-10-15 20:06       ` Daniel Walker
2007-10-15 21:35         ` Thomas Gleixner
2007-10-15 21:44           ` Daniel Walker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®