mpt(4): Pass INTR_MPSAFE when setting up the interrupt.
authorSascha Wildner <saw@online.de>
Tue, 17 Apr 2012 16:03:15 +0000 (18:03 +0200)
committerSascha Wildner <saw@online.de>
Tue, 17 Apr 2012 16:03:15 +0000 (18:03 +0200)
It's a porting mistake I did back then.

sys/dev/disk/mpt/mpt.h
sys/dev/disk/mpt/mpt_pci.c

index 67dbc17..b717547 100644 (file)
@@ -765,6 +765,7 @@ mpt_assign_serno(struct mpt_softc *mpt, request_t *req)
 }
 
 /***************************** Locking Primitives *****************************/
+#define        MPT_IFLAGS              INTR_MPSAFE
 #define        MPT_LOCK_SETUP(mpt)                                             \
                lockinit(&mpt->mpt_lock, "mpt", 0, LK_CANRECURSE);      \
                mpt->mpt_locksetup = 1
index ec8634e..cc241de 100644 (file)
@@ -593,7 +593,7 @@ mpt_pci_attach(device_t dev)
        mpt_disable_ints(mpt);
 
        /* Register the interrupt handler */
-       if (mpt_setup_intr(dev, mpt->pci_irq, 0, NULL, mpt_pci_intr,
+       if (mpt_setup_intr(dev, mpt->pci_irq, MPT_IFLAGS, NULL, mpt_pci_intr,
            mpt, &mpt->ih)) {
                device_printf(dev, "could not setup interrupt\n");
                goto bad;