aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2009-06-03 12:55:21 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-06-08 15:46:47 -0400
commitf4658b6ccc9d54b28b89004accc989db185b6a2e (patch)
treeb9c465a7439200031d13d5f6631281fb480e2b81 /drivers/scsi/qla2xxx/qla_init.c
parentca9e9c3eb118d0cb9dc2e5232f6f2dcaa4b7a5e0 (diff)
[SCSI] qla2xxx: Mark a port's state as needing-rediscovery during link disruptions.
With RSCN states not being kept across qla2x00_configure_loop() invocations, loop-resync distruptions during fabric-discovery may cause ports to remain in a lost state. Force state renegotiation during a follow-on configure-loop iteration. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 415fbf60de11..d145de0d2c2a 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -2064,8 +2064,10 @@ qla2x00_configure_loop(scsi_qla_host_t *vha)
2064 if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) { 2064 if (test_bit(LOOP_RESYNC_NEEDED, &vha->dpc_flags)) {
2065 if (test_bit(LOCAL_LOOP_UPDATE, &save_flags)) 2065 if (test_bit(LOCAL_LOOP_UPDATE, &save_flags))
2066 set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags); 2066 set_bit(LOCAL_LOOP_UPDATE, &vha->dpc_flags);
2067 if (test_bit(RSCN_UPDATE, &save_flags)) 2067 if (test_bit(RSCN_UPDATE, &save_flags)) {
2068 set_bit(RSCN_UPDATE, &vha->dpc_flags); 2068 set_bit(RSCN_UPDATE, &vha->dpc_flags);
2069 vha->flags.rscn_queue_overflow = 1;
2070 }
2069 } 2071 }
2070 2072
2071 return (rval); 2073 return (rval);