Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2017 08:56:13 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315670 - head/sys/dev/isp
Message-ID:  <201703210856.v2L8uDFi014640@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703210856.v2L8uDFi014640>