diff options
author | Chad Dupuis <chad.dupuis@qlogic.com> | 2010-10-15 20:27:39 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-10-25 22:57:25 +0200 |
commit | 1e6d0670921ea4e736b172e9a3c32a2ba0c33f6a (patch) | |
tree | a8a89594c9b88a33a0e0d24dd79e7260c3125d39 /drivers/scsi/qla2xxx/qla_attr.c | |
parent | [SCSI] qla2xxx: locking problem in qla2x00_init_rings() (diff) | |
download | linux-1e6d0670921ea4e736b172e9a3c32a2ba0c33f6a.tar.xz linux-1e6d0670921ea4e736b172e9a3c32a2ba0c33f6a.zip |
[SCSI] qla2xxx: Remove port down retry count.
This patch removes the use of the port down retry counter as a mechanism to
update a fcport state. The internal driver counter is a residual carry-over
from pre-FC-transport aware driver inteaction. The ql2xport_down_retry module
parameter and NVRAM set ha->port_down_retry_count remain in order to seed the
fc-host's default dev-loss-tmo.
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Madhuranath Iyengar <Madhu.Iyengar@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_attr.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 2ff4342ae362..a9ceb39751a1 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c @@ -1547,6 +1547,10 @@ qla2x00_dev_loss_tmo_callbk(struct fc_rport *rport) *((fc_port_t **)rport->dd_data) = NULL; spin_unlock_irq(host->host_lock); + /* Now that the rport has been deleted, set the fcport state to + FCS_DEVICE_DEAD */ + atomic_set(&fcport->state, FCS_DEVICE_DEAD); + if (test_bit(ABORT_ISP_ACTIVE, &fcport->vha->dpc_flags)) return; |