if (!fcport)
return;
+ /* Now that the rport has been deleted, set the fcport state to
+ FCS_DEVICE_DEAD */
+ atomic_set(&fcport->state, FCS_DEVICE_DEAD);
+
/*
* Transport has effectively 'deleted' the rport, clear
* all local references.
*((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;