scsi: qla2xxx: Update fw_started flags at qpair creation.
authorhimanshu.madhani@cavium.com <himanshu.madhani@cavium.com>
Wed, 23 Aug 2017 22:04:57 +0000 (15:04 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:18 +0000 (22:29 -0400)
Fixes: 4b60c82736d0 ("scsi: qla2xxx: Add fw_started flags to qpair")
Cc: <stable@vger.kernel.org>
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

index 072ad1aa55051e7b28d26ec13bd0e5105cb08da9..8f83571afc7baf085d4eece9e7ea176d775dd763 100644 (file)
@@ -7804,6 +7804,7 @@ struct qla_qpair *qla2xxx_create_qpair(struct scsi_qla_host *vha, int qos,
                ha->queue_pair_map[qpair_id] = qpair;
                qpair->id = qpair_id;
                qpair->vp_idx = vp_idx;
+               qpair->fw_started = ha->flags.fw_started;
                INIT_LIST_HEAD(&qpair->hints_list);
                qpair->chip_reset = ha->base_qpair->chip_reset;
                qpair->enable_class_2 = ha->base_qpair->enable_class_2;