linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.11: spinlock problem
@ 2006-06-23 16:51 Darren Reed
  2006-06-23 17:34 ` linux-os (Dick Johnson)
  2006-06-23 19:19 ` Hareesh Nagarajan
  0 siblings, 2 replies; 6+ messages in thread
From: Darren Reed @ 2006-06-23 16:51 UTC (permalink / raw)
  To: linux-kernel

Hi,

I'm seeing a spinlock held panic with a kernel stack like this:

spinlock - panic, lock already held
..
__do_softirq
do_softirq
=========
do_IRQ
common_interrupt
spinlock/spinunlock
..

when I load up the system in testing.
The code protected by the spinlock is quite small - counter increment.

I'm using 2.6.11-1.1369_FC4 #1, installed inside of vmware,
running as a guest on a Windows XP box.

Is this
(a) linux allowing the IRQ too early
(b) vmware not doing something right
(c) enivitable
(d) somehow my fault
(e) something else?

Thanks,
Darren

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: 2.6.11: spinlock problem
@ 2006-06-24 10:18 Chuck Ebbert
  0 siblings, 0 replies; 6+ messages in thread
From: Chuck Ebbert @ 2006-06-24 10:18 UTC (permalink / raw)
  To: Darren Reed; +Cc: linux-kernel

In-Reply-To: <200606240247.k5O2lU3C009083@firewall.reed.wattle.id.au>

On Sat, 24 Jun 2006 12:47:30 +1000, Darren Reed wrote:

> The call stack for the panic is:
> panic
> ipf_read_enter
> ..
> do_softirq
> =====
> do_IRQ
> common_interrupt
> ipf_rw_exit

If you are using spinlocks fron interrupt context you need to use
spin_lock_irq/spin_lock_irqsave / spin_unlock_irq/spin_unlock_irqrestore.

-- 
Chuck
 "You can't read a newspaper if you can't read."  --George W. Bush

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

end of thread, other threads:[~2006-06-25  9:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-23 16:51 2.6.11: spinlock problem Darren Reed
2006-06-23 17:34 ` linux-os (Dick Johnson)
2006-06-24  2:47   ` Darren Reed
2006-06-25  9:38     ` Frederik Deweerdt
2006-06-23 19:19 ` Hareesh Nagarajan
2006-06-24 10:18 Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).