[SCSI] qla2xxx: Correct issue where portstate does not transition during loop-resync.
authorandrew.vasquez@qlogic.com <andrew.vasquez@qlogic.com>
Sat, 14 Jan 2006 01:05:26 +0000 (17:05 -0800)
committerJames Bottomley <jejb@mulgrave.(none)>
Sat, 14 Jan 2006 16:55:31 +0000 (10:55 -0600)
If the Get Port Database call fails during local-loop
update, then schedule the DPC routine to perform a rescan as
the firmware would have updated the Get ID List port-entries
of their new state.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/qla2xxx/qla_init.c

index 7d973bd9022bb84773a11aa490ed39df1608133a..e21316a8ecf39946a682f3c85bb36cc36176d075 100644 (file)
@@ -1939,6 +1939,9 @@ qla2x00_configure_local_loop(scsi_qla_host_t *ha)
                            "information -- get_port_database=%x, "
                            "loop_id=0x%04x\n",
                            ha->host_no, rval2, new_fcport->loop_id));
+                       DEBUG2(printk("scsi(%ld): Scheduling resync...\n",
+                           ha->host_no));
+                       set_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags);
                        continue;
                }