Skip to content

Commit

Permalink
[SCSI] qla2xxx: Save and restore irq in the response queue interrupt …
Browse files Browse the repository at this point in the history
…handler.

Signed-off-by: Saurav Kashyap <[email protected]>
Signed-off-by: Chad Dupuis <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
Saurav Kashyap authored and James Bottomley committed Aug 27, 2011
1 parent bc91ade commit 3553d34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/scsi/qla2xxx/qla_nx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2208,6 +2208,7 @@ qla82xx_msix_rsp_q(int irq, void *dev_id)
struct qla_hw_data *ha;
struct rsp_que *rsp;
struct device_reg_82xx __iomem *reg;
unsigned long flags;

rsp = (struct rsp_que *) dev_id;
if (!rsp) {
Expand All @@ -2218,11 +2219,11 @@ qla82xx_msix_rsp_q(int irq, void *dev_id)

ha = rsp->hw;
reg = &ha->iobase->isp82;
spin_lock_irq(&ha->hardware_lock);
spin_lock_irqsave(&ha->hardware_lock, flags);
vha = pci_get_drvdata(ha->pdev);
qla24xx_process_response_queue(vha, rsp);
WRT_REG_DWORD(&reg->host_int, 0);
spin_unlock_irq(&ha->hardware_lock);
spin_unlock_irqrestore(&ha->hardware_lock, flags);
return IRQ_HANDLED;
}

Expand Down

0 comments on commit 3553d34

Please sign in to comment.