|
@@ -2552,7 +2552,7 @@ void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport,
|
|
{
|
|
{
|
|
if (atomic_read(&fcport->state) == FCS_ONLINE &&
|
|
if (atomic_read(&fcport->state) == FCS_ONLINE &&
|
|
vha->vp_idx == fcport->vp_idx) {
|
|
vha->vp_idx == fcport->vp_idx) {
|
|
- atomic_set(&fcport->state, FCS_DEVICE_LOST);
|
|
|
|
|
|
+ qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
|
|
qla2x00_schedule_rport_del(vha, fcport, defer);
|
|
qla2x00_schedule_rport_del(vha, fcport, defer);
|
|
}
|
|
}
|
|
/*
|
|
/*
|
|
@@ -2560,7 +2560,7 @@ void qla2x00_mark_device_lost(scsi_qla_host_t *vha, fc_port_t *fcport,
|
|
* port but do the retries.
|
|
* port but do the retries.
|
|
*/
|
|
*/
|
|
if (atomic_read(&fcport->state) != FCS_DEVICE_DEAD)
|
|
if (atomic_read(&fcport->state) != FCS_DEVICE_DEAD)
|
|
- atomic_set(&fcport->state, FCS_DEVICE_LOST);
|
|
|
|
|
|
+ qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
|
|
|
|
|
|
if (!do_login)
|
|
if (!do_login)
|
|
return;
|
|
return;
|
|
@@ -2615,7 +2615,7 @@ qla2x00_mark_all_devices_lost(scsi_qla_host_t *vha, int defer)
|
|
if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD)
|
|
if (atomic_read(&fcport->state) == FCS_DEVICE_DEAD)
|
|
continue;
|
|
continue;
|
|
if (atomic_read(&fcport->state) == FCS_ONLINE) {
|
|
if (atomic_read(&fcport->state) == FCS_ONLINE) {
|
|
- atomic_set(&fcport->state, FCS_DEVICE_LOST);
|
|
|
|
|
|
+ qla2x00_set_fcport_state(fcport, FCS_DEVICE_LOST);
|
|
if (defer)
|
|
if (defer)
|
|
qla2x00_schedule_rport_del(vha, fcport, defer);
|
|
qla2x00_schedule_rport_del(vha, fcport, defer);
|
|
else if (vha->vp_idx == fcport->vp_idx)
|
|
else if (vha->vp_idx == fcport->vp_idx)
|