public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* i386 IPI handlers running with hardirq_count == 0
@ 2006-06-29  9:01 Keith Owens
  2006-06-29  9:18 ` Andrew Morton
  0 siblings, 1 reply; 8+ messages in thread
From: Keith Owens @ 2006-06-29  9:01 UTC (permalink / raw)
  To: linux-kernel

Macro arch/i386/kernel/entry.S::BUILD_INTERRUPT generates the code to
handle an IPI and call the corresponding smp_<name> C code.
BUILD_INTERRUPT does not update the hardirq_count for the interrupted
task, that is left to the C code.  Some of the C IPI handlers do not
call irq_enter(), so they are running in IRQ context but the
hardirq_count field does not reflect this.  For example,
smp_invalidate_interrupt does not set the hardirq count.

What is the best fix, change BUILD_INTERRUPT to adjust the hardirq
count or audit all the C handlers to ensure that they call irq_enter()?


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

end of thread, other threads:[~2006-06-29 20:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-29  9:01 i386 IPI handlers running with hardirq_count == 0 Keith Owens
2006-06-29  9:18 ` Andrew Morton
2006-06-29 11:25   ` Andi Kleen
2006-06-29 17:00     ` Keith Owens
2006-06-29 20:17       ` Ingo Molnar
2006-06-29 20:47         ` Andrew Morton
2006-06-29 20:43           ` Ingo Molnar
2006-06-29 16:40   ` Keith Owens

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