Revert excessive marking devices lost to what the mainline qla2xxx is doing.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3196 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-01-06 13:30:45 +00:00
parent b8cc8e119d
commit ff8b7ea523

View File

@@ -2225,10 +2225,8 @@ qla2x00_mark_all_devices_lost(scsi_qla_host_t *ha, int defer)
scsi_qla_host_t *pha = to_qla_parent(ha);
list_for_each_entry_rcu(fcport, &pha->fcports, list) {
#ifndef CONFIG_SCSI_QLA2XXX_TARGET
if (ha->vp_idx != 0 && ha->vp_idx != fcport->vp_idx)
continue;
#endif
/*
* No point in marking the device as lost, if the device is
* already DEAD.
@@ -2243,9 +2241,6 @@ qla2x00_mark_all_devices_lost(scsi_qla_host_t *ha, int defer)
}
atomic_set(&fcport->state, FCS_DEVICE_LOST);
}
if (defer)
qla2xxx_wake_dpc(ha);
}
/*