Merge branch '6.5/scsi-staging' into 6.5/scsi-fixes
[platform/kernel/linux-starfive.git] / drivers / scsi / qla2xxx / qla_init.c
index e2d51f6..367fba2 100644 (file)
@@ -9641,6 +9641,9 @@ struct qla_qpair *qla2xxx_create_qpair(struct scsi_qla_host *vha, int qos,
                qpair->rsp->req = qpair->req;
                qpair->rsp->qpair = qpair;
 
+               if (!qpair->cpu_mapped)
+                       qla_cpu_update(qpair, raw_smp_processor_id());
+
                if (IS_T10_PI_CAPABLE(ha) && ql2xenabledif) {
                        if (ha->fw_attributes & BIT_4)
                                qpair->difdix_supported = 1;