|
@@ -1273,11 +1273,6 @@ static void fcoe_ctlr_recv_clr_vlink(struct fcoe_ctlr *fip,
|
|
|
* No Vx_Port description. Clear all NPIV ports,
|
|
|
* followed by physical port
|
|
|
*/
|
|
|
- mutex_lock(&lport->lp_mutex);
|
|
|
- list_for_each_entry(vn_port, &lport->vports, list)
|
|
|
- fc_lport_reset(vn_port);
|
|
|
- mutex_unlock(&lport->lp_mutex);
|
|
|
-
|
|
|
mutex_lock(&fip->ctlr_mutex);
|
|
|
per_cpu_ptr(lport->dev_stats,
|
|
|
get_cpu())->VLinkFailureCount++;
|
|
@@ -1285,6 +1280,11 @@ static void fcoe_ctlr_recv_clr_vlink(struct fcoe_ctlr *fip,
|
|
|
fcoe_ctlr_reset(fip);
|
|
|
mutex_unlock(&fip->ctlr_mutex);
|
|
|
|
|
|
+ mutex_lock(&lport->lp_mutex);
|
|
|
+ list_for_each_entry(vn_port, &lport->vports, list)
|
|
|
+ fc_lport_reset(vn_port);
|
|
|
+ mutex_unlock(&lport->lp_mutex);
|
|
|
+
|
|
|
fc_lport_reset(fip->lp);
|
|
|
fcoe_ctlr_solicit(fip, NULL);
|
|
|
} else {
|