From 55db271db5a6600f921731e39eeeb8164b2ad557 Mon Sep 17 00:00:00 2001 From: mav Date: Tue, 21 Mar 2017 08:56:13 +0000 Subject: [PATCH] Addition to r315579: drop the lock while allocating IRQs. MFC after: 12 days --- sys/dev/isp/isp_pci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 9ca47866b86c..6210e6dd64a6 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -2054,6 +2054,7 @@ isp_pci_irqsetup(ispsoftc_t *isp) if (isp->isp_nirq > 0) return (0); + ISP_UNLOCK(isp); if (ISP_CAP_MSIX(isp)) { max_irq = min(ISP_MAX_IRQS, IS_26XX(isp) ? 3 : 2); pcs->msicount = imin(pci_msix_count(dev), max_irq); @@ -2094,6 +2095,7 @@ isp_pci_irqsetup(ispsoftc_t *isp) } isp->isp_nirq = i + 1; } + ISP_LOCK(isp); return (isp->isp_nirq == 0); }