* Possible race in x86 global_irq_lock handling.
@ 2003-08-21 8:33 TeJun Huh
0 siblings, 0 replies; only message in thread
From: TeJun Huh @ 2003-08-21 8:33 UTC (permalink / raw)
To: linux-kernel
I've been reading x86 interrupt handling code for a couple of days
and encountered something which I believe is a race condition. It's
betweewn include/asm-i386/hardirq.h:irq_enter() and
arch/i386/kernel/irq.c:get_irqlock(). Lockless synchronization using
memory ordering seems to be used to achieve global irq locking.
in get_irqlock()
static inline void irq_enter(int cpu, int irq)
{
++local_irq_count(cpu);
while (test_bit(0,&global_irq_lock)) {
cpu_relax();
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-21 8:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-21 8:33 Possible race in x86 global_irq_lock handling TeJun Huh
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®