For some uniformity move ahci_ch_init() call under the lock.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2015-02-26 12:51:05 +00:00
parent 2d4c4c8dc7
commit 3e78ee6328
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279320

View File

@ -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))) {