The AHCI driver was using `spinlock_init` on locks it was trying
to `spin_lock_irqsave`.  Use `spinlock_init_irqsave` instead.

Change-Id: Ieeb87601c9d73d77f524c948500d50db68247484
---
 kern/drivers/dev/sdiahci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kern/drivers/dev/sdiahci.c b/kern/drivers/dev/sdiahci.c
index 24d5473b..bd4ffd7b 100644
--- a/kern/drivers/dev/sdiahci.c
+++ b/kern/drivers/dev/sdiahci.c
@@ -2165,7 +2165,7 @@ static int newctlr(struct ctlr *ctlr, struct sdev *sdev, 
int nunit)
        pi = ahci_hba_read32(ctlr->hba, HBA_PI);
        for (i = 0; i < NCtlrdrv; i++) {
                drive = ctlr->rawdrive + i;
-               spinlock_init(&drive->Lock);
+               spinlock_init_irqsave(&drive->Lock);
                drive->portno = i;
                drive->driveno = -1;
                drive->sectors = 0;
-- 
2.12.2.715.g7642488e1d-goog

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to