]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
scsi: qla2xxx: Fix process response queue for ISP26XX and above
authorQuinn Tran <quinn.tran@cavium.com>
Fri, 31 Aug 2018 18:24:26 +0000 (11:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Sep 2018 00:28:06 +0000 (20:28 -0400)
This patch improves performance for 16G and above adapter by removing
additional call to process_response_queue().

[mkp: typo]

Cc: <stable@vger.kernel.org>
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c
drivers/scsi/qla2xxx/qla_iocb.c

index b934977c5c260086a4ff9776d0b9c577b169542e..4686fb5f26aa82d713d655044e6cde3ebf580d1c 100644 (file)
@@ -7142,7 +7142,6 @@ qla24xx_nvram_config(scsi_qla_host_t *vha)
        }
        icb->firmware_options_2 &= cpu_to_le32(
            ~(BIT_3 | BIT_2 | BIT_1 | BIT_0));
-       vha->flags.process_response_queue = 0;
        if (ha->zio_mode != QLA_ZIO_DISABLED) {
                ha->zio_mode = QLA_ZIO_MODE_6;
 
@@ -7153,7 +7152,6 @@ qla24xx_nvram_config(scsi_qla_host_t *vha)
                icb->firmware_options_2 |= cpu_to_le32(
                    (uint32_t)ha->zio_mode);
                icb->interrupt_delay_timer = cpu_to_le16(ha->zio_timer);
-               vha->flags.process_response_queue = 1;
        }
 
        if (rval) {
index 42ac8e097419cb6169d3e2c4e2fba18d1b152732..119927220299e7ec9df947097d230f416fb48139 100644 (file)
@@ -1526,12 +1526,6 @@ qla24xx_start_scsi(srb_t *sp)
 
        /* Set chip new ring index. */
        WRT_REG_DWORD(req->req_q_in, req->ring_index);
-       RD_REG_DWORD_RELAXED(&ha->iobase->isp24.hccr);
-
-       /* Manage unprocessed RIO/ZIO commands in response queue. */
-       if (vha->flags.process_response_queue &&
-               rsp->ring_ptr->signature != RESPONSE_PROCESSED)
-               qla24xx_process_response_queue(vha, rsp);
 
        spin_unlock_irqrestore(&ha->hardware_lock, flags);
        return QLA_SUCCESS;
@@ -1725,12 +1719,6 @@ qla24xx_dif_start_scsi(srb_t *sp)
 
        /* Set chip new ring index. */
        WRT_REG_DWORD(req->req_q_in, req->ring_index);
-       RD_REG_DWORD_RELAXED(&ha->iobase->isp24.hccr);
-
-       /* Manage unprocessed RIO/ZIO commands in response queue. */
-       if (vha->flags.process_response_queue &&
-           rsp->ring_ptr->signature != RESPONSE_PROCESSED)
-               qla24xx_process_response_queue(vha, rsp);
 
        spin_unlock_irqrestore(&ha->hardware_lock, flags);
 
@@ -1880,11 +1868,6 @@ qla2xxx_start_scsi_mq(srb_t *sp)
        /* Set chip new ring index. */
        WRT_REG_DWORD(req->req_q_in, req->ring_index);
 
-       /* Manage unprocessed RIO/ZIO commands in response queue. */
-       if (vha->flags.process_response_queue &&
-               rsp->ring_ptr->signature != RESPONSE_PROCESSED)
-               qla24xx_process_response_queue(vha, rsp);
-
        spin_unlock_irqrestore(&qpair->qp_lock, flags);
        return QLA_SUCCESS;