Re: acpi-devel@lists.sourceforge.net,linux-ia64@vger.kernel.orgRe: [PATCH] Updated patches for PCI IRQ resourcedeallocation support [3/3]

From: Kenji Kaneshige
Date: Mon Sep 27 2004 - 01:07:26 EST


Zwane Mwaikambo wrote:

On Sat, 25 Sep 2004, Zwane Mwaikambo wrote:

Hmm, what happens here if that vector was queued just before the local irq disable in spin_lock_irqsave(idesc->lock...) ? Then when we unlock we'll call do_IRQ to handle the irq associated with that vector. I haven't seen the usage but it appears that iosapic_unregister_intr requires some serialisation.

Ignore this, i misread some of the code.

Thanks Kenji,
Zwane


OK.
BTW, I was able to find a bug thanks to your comment :-)
The following 'spin_lock(&iosapic_lock)' was missing. I'll update
the patch.

if (unlikely(idesc->action)) {
iosapic_intr_info[vector].refcnt++;
MISSING => spin_unlock(&iosapic_lock);
spin_unlock_irqrestore(&idesc->lock, flags);
printk(KERN_WARNING "Cannot unregister GSI. IRQ %u is still in use.\n", irq);
return;
}

Thanks,
Kenji Kaneshige


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/