From owner-svn-src-head@freebsd.org Tue Mar 21 08:56:14 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CFD9DD0A915; Tue, 21 Mar 2017 08:56:14 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9CE5BD76; Tue, 21 Mar 2017 08:56:14 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2L8uD3G014641; Tue, 21 Mar 2017 08:56:13 GMT (envelope-from mav@FreeBSD.org) Received: (from mav@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2L8uDFi014640; Tue, 21 Mar 2017 08:56:13 GMT (envelope-from mav@FreeBSD.org) Message-Id: <201703210856.v2L8uDFi014640@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mav set sender to mav@FreeBSD.org using -f From: Alexander Motin Date: Tue, 21 Mar 2017 08:56:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315670 - head/sys/dev/isp X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2017 08:56:14 -0000 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); }