qla4xxx: Initialize hardware queue for ISP40XX
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>
Tue, 25 Feb 2014 03:07:03 +0000 (22:07 -0500)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 May 2014 17:12:16 +0000 (19:12 +0200)
Issue:
System crash while target discovery for ISP40XX

Root cause:
Function qla4xxx_init_rings() is not called for ISP40XX

Fix:
Call function qla4xxx_init_rings() for ISP40XX from
qla4xxx_start_firmware().

Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/qla4xxx/ql4_init.c

index 7dda1a0d71612ccb6cf63a0aa509b0ec045be431..6f12f859b11db787e3b8add134f4d7515cf5ecf4 100644 (file)
@@ -890,6 +890,8 @@ int qla4xxx_start_firmware(struct scsi_qla_host *ha)
        if (status == QLA_SUCCESS) {
                if (test_and_clear_bit(AF_GET_CRASH_RECORD, &ha->flags))
                        qla4xxx_get_crash_record(ha);
+
+               qla4xxx_init_rings(ha);
        } else {
                DEBUG(printk("scsi%ld: %s: Firmware has NOT started\n",
                             ha->host_no, __func__));