svn commit: r315670 - head/sys/dev/isp

Alexander Motin mav at FreeBSD.org
Tue Mar 21 08:56:14 UTC 2017


Author: mav
Date: Tue Mar 21 08:56:13 2017
New Revision: 315670
URL: https://svnweb.freebsd.org/changeset/base/315670

Log:
  Addition to r315579: drop the lock while allocating IRQs.
  
  MFC after:	12 days

Modified:
  head/sys/dev/isp/isp_pci.c

Modified: head/sys/dev/isp/isp_pci.c
==============================================================================
--- head/sys/dev/isp/isp_pci.c	Tue Mar 21 08:39:36 2017	(r315669)
+++ head/sys/dev/isp/isp_pci.c	Tue Mar 21 08:56:13 2017	(r315670)
@@ -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);
 }


More information about the svn-src-head mailing list