[SCSI] qla2xxx: Save and restore irq in the response queue interrupt handler.
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
parent
bc91ade9b7
commit
3553d343e7
|
@ -2208,6 +2208,7 @@ qla82xx_msix_rsp_q(int irq, void *dev_id)
|
||||||
struct qla_hw_data *ha;
|
struct qla_hw_data *ha;
|
||||||
struct rsp_que *rsp;
|
struct rsp_que *rsp;
|
||||||
struct device_reg_82xx __iomem *reg;
|
struct device_reg_82xx __iomem *reg;
|
||||||
|
unsigned long flags;
|
||||||
|
|
||||||
rsp = (struct rsp_que *) dev_id;
|
rsp = (struct rsp_que *) dev_id;
|
||||||
if (!rsp) {
|
if (!rsp) {
|
||||||
|
@ -2218,11 +2219,11 @@ qla82xx_msix_rsp_q(int irq, void *dev_id)
|
||||||
|
|
||||||
ha = rsp->hw;
|
ha = rsp->hw;
|
||||||
reg = &ha->iobase->isp82;
|
reg = &ha->iobase->isp82;
|
||||||
spin_lock_irq(&ha->hardware_lock);
|
spin_lock_irqsave(&ha->hardware_lock, flags);
|
||||||
vha = pci_get_drvdata(ha->pdev);
|
vha = pci_get_drvdata(ha->pdev);
|
||||||
qla24xx_process_response_queue(vha, rsp);
|
qla24xx_process_response_queue(vha, rsp);
|
||||||
WRT_REG_DWORD(®->host_int, 0);
|
WRT_REG_DWORD(®->host_int, 0);
|
||||||
spin_unlock_irq(&ha->hardware_lock);
|
spin_unlock_irqrestore(&ha->hardware_lock, flags);
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue