From: Andrew Vasquez Date: Thu, 27 Oct 2005 18:09:38 +0000 (-0700) Subject: [SCSI] qla2xxx: Correct issue where fcport is prematurely marked DEAD. X-Git-Tag: v2.6.15-rc1~723^2~2^2~48 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0eedfcf0cdac30b14d1e6c99abc6604347ef0af8;p=linux-2.6-omap-h63xx.git [SCSI] qla2xxx: Correct issue where fcport is prematurely marked DEAD. The non-handled failure cases of the Fabric Login mailbox command handling logic would incorrectly mark the fcport as dead and not allow the standard port-down-retry-count logic to manage the transition. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index fbb6feee40c..6fc8bbae939 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -2858,7 +2858,7 @@ qla2x00_fabric_login(scsi_qla_host_t *ha, fc_port_t *fcport, fcport->d_id.b.domain, fcport->d_id.b.area, fcport->d_id.b.al_pa); fcport->loop_id = FC_NO_LOOP_ID; - atomic_set(&fcport->state, FCS_DEVICE_DEAD); + fcport->login_retry = 0; rval = 3; break;