aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r--drivers/scsi/fcoe/fcoe_ctlr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/fcoe/fcoe_ctlr.c b/drivers/scsi/fcoe/fcoe_ctlr.c
index e7522dcc296..a43dad2238d 100644
--- a/drivers/scsi/fcoe/fcoe_ctlr.c
+++ b/drivers/scsi/fcoe/fcoe_ctlr.c
@@ -1273,11 +1273,6 @@ static void fcoe_ctlr_recv_clr_vlink(struct fcoe_ctlr *fip,
1273 * No Vx_Port description. Clear all NPIV ports, 1273 * No Vx_Port description. Clear all NPIV ports,
1274 * followed by physical port 1274 * followed by physical port
1275 */ 1275 */
1276 mutex_lock(&lport->lp_mutex);
1277 list_for_each_entry(vn_port, &lport->vports, list)
1278 fc_lport_reset(vn_port);
1279 mutex_unlock(&lport->lp_mutex);
1280
1281 mutex_lock(&fip->ctlr_mutex); 1276 mutex_lock(&fip->ctlr_mutex);
1282 per_cpu_ptr(lport->dev_stats, 1277 per_cpu_ptr(lport->dev_stats,
1283 get_cpu())->VLinkFailureCount++; 1278 get_cpu())->VLinkFailureCount++;
@@ -1285,6 +1280,11 @@ static void fcoe_ctlr_recv_clr_vlink(struct fcoe_ctlr *fip,
1285 fcoe_ctlr_reset(fip); 1280 fcoe_ctlr_reset(fip);
1286 mutex_unlock(&fip->ctlr_mutex); 1281 mutex_unlock(&fip->ctlr_mutex);
1287 1282
1283 mutex_lock(&lport->lp_mutex);
1284 list_for_each_entry(vn_port, &lport->vports, list)
1285 fc_lport_reset(vn_port);
1286 mutex_unlock(&lport->lp_mutex);
1287
1288 fc_lport_reset(fip->lp); 1288 fc_lport_reset(fip->lp);
1289 fcoe_ctlr_solicit(fip, NULL); 1289 fcoe_ctlr_solicit(fip, NULL);
1290 } else { 1290 } else {