[openib-general] Re: [PATCH][3/26] IB/mthca: improve CQ locking part 1
Jeff Garzik
jgarzik at pobox.com
Thu Mar 3 16:35:00 PST 2005
Roland Dreier wrote:
> @@ -783,6 +777,11 @@
> cq->cqn & (dev->limits.num_cqs - 1));
> spin_unlock_irq(&dev->cq_table.lock);
>
> + if (dev->mthca_flags & MTHCA_FLAG_MSI_X)
> + synchronize_irq(dev->eq_table.eq[MTHCA_EQ_COMP].msi_x_vector);
> + else
> + synchronize_irq(dev->pdev->irq);
> +
Tangent: I think we need a pci_irq_sync() rather than putting the above
code into each driver.
Jeff
More information about the general
mailing list