svn commit: r279320 - head/sys/dev/ahci
Alexander Motin
mav at FreeBSD.org
Thu Feb 26 12:51:06 UTC 2015
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 at 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))) {
More information about the svn-src-all
mailing list