scsi: qla2xxx: Fix NVMe retry
[linux-2.6-microblaze.git] / drivers / scsi / qla2xxx / qla_gs.c
index df6e3ef..ebc8fdb 100644 (file)
@@ -3504,6 +3504,14 @@ void qla24xx_async_gnnft_done(scsi_qla_host_t *vha, srb_t *sp)
                        fcport->last_rscn_gen = fcport->rscn_gen;
                        fcport->fc4_type = rp->fc4type;
                        found = true;
+
+                       if (fcport->scan_needed) {
+                               if (NVME_PRIORITY(vha->hw, fcport))
+                                       fcport->do_prli_nvme = 1;
+                               else
+                                       fcport->do_prli_nvme = 0;
+                       }
+
                        /*
                         * If device was not a fabric device before.
                         */