qla2xxx: Decrease pci access for response queue processing for ISPFX00.
authorArmen Baloyan <armen.baloyan@qlogic.com>
Fri, 11 Apr 2014 20:54:25 +0000 (16:54 -0400)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 11:31:02 +0000 (13:31 +0200)
Signed-off-by: Armen Baloyan <armen.baloyan@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla2xxx/qla_mr.c

index 1801e5f4717ad53ddd0add2446f62845296edd56..eb9be2efe65be139465687b2c65abcc5b6c8a63a 100644 (file)
@@ -2676,7 +2676,7 @@ qlafx00_process_response_queue(struct scsi_qla_host *vha,
        uint16_t lreq_q_out = 0;
 
        lreq_q_in = RD_REG_DWORD(rsp->rsp_q_in);
-       lreq_q_out = RD_REG_DWORD(rsp->rsp_q_out);
+       lreq_q_out = rsp->ring_index;
 
        while (lreq_q_in != lreq_q_out) {
                lptr = rsp->ring_ptr;