Date: Thu, 26 Feb 2015 12:51:06 +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: r279320 - head/sys/dev/ahci Message-ID: <201502261251.t1QCp6Um075751@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Thu Feb 26 12:51:05 2015 New Revision: 279320 URL: https://svnweb.freebsd.org/changeset/base/279320 Log: For some uniformity move ahci_ch_init() call under the lock. Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks Modified: head/sys/dev/ahci/ahci.c Modified: head/sys/dev/ahci/ahci.c ============================================================================== --- head/sys/dev/ahci/ahci.c Thu Feb 26 11:02:40 2015 (r279319) +++ head/sys/dev/ahci/ahci.c Thu Feb 26 12:51:05 2015 (r279320) @@ -668,8 +668,8 @@ ahci_ch_attach(device_t dev) return (ENXIO); ahci_dmainit(dev); ahci_slotsalloc(dev); - ahci_ch_init(dev); mtx_lock(&ch->mtx); + ahci_ch_init(dev); rid = ATA_IRQ_RID; if (!(ch->r_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE))) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502261251.t1QCp6Um075751>