Skip to content

Commit df3b766

Browse files
Mark HaverkampJames Bottomley
authored andcommitted
[SCSI] aacraid: sa race condition fix
Received From Mark Salyzyn A race condition existed that could result in a lost completion of a command to the ppc based cards. Signed-off-by: Mark Haverkamp <markh@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent 404d9a9 commit df3b766

File tree

1 file changed

+2
-2
lines changed
  • drivers/scsi/aacraid

1 file changed

+2
-2
lines changed

drivers/scsi/aacraid/sa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ static irqreturn_t aac_sa_intr(int irq, void *dev_id, struct pt_regs *regs)
6666
sa_writew(dev, DoorbellClrReg_p, PrintfReady); /* clear PrintfReady */
6767
sa_writew(dev, DoorbellReg_s, PrintfDone);
6868
} else if (intstat & DOORBELL_1) { // dev -> Host Normal Command Ready
69-
aac_command_normal(&dev->queues->queue[HostNormCmdQueue]);
7069
sa_writew(dev, DoorbellClrReg_p, DOORBELL_1);
70+
aac_command_normal(&dev->queues->queue[HostNormCmdQueue]);
7171
} else if (intstat & DOORBELL_2) { // dev -> Host Normal Response Ready
72-
aac_response_normal(&dev->queues->queue[HostNormRespQueue]);
7372
sa_writew(dev, DoorbellClrReg_p, DOORBELL_2);
73+
aac_response_normal(&dev->queues->queue[HostNormRespQueue]);
7474
} else if (intstat & DOORBELL_3) { // dev -> Host Normal Command Not Full
7575
sa_writew(dev, DoorbellClrReg_p, DOORBELL_3);
7676
} else if (intstat & DOORBELL_4) { // dev -> Host Normal Response Not Full

0 commit comments

Comments
 (0)