aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe/fcoe.c
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2009-07-29 17:04:17 -0700
committerJames Bottomley <James.Bottomley@suse.de>2009-08-22 17:52:04 -0500
commitf161fb72104c7addac3d404a1ff543b2491c1426 (patch)
tree8cee890fee11417429fb2cbd69410f04019d51b6 /drivers/scsi/fcoe/fcoe.c
parent[SCSI] libfc: change debug messages to give host number. (diff)
downloadlinux-dev-f161fb72104c7addac3d404a1ff543b2491c1426.tar.xz
linux-dev-f161fb72104c7addac3d404a1ff543b2491c1426.zip
[SCSI] fcoe: stop delivery of received frames before doing lport_destroy()
To be more sure that no more input arrives at the local port as it is being destroyed, clean the queues in the per-cpu receive threads. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/fcoe/fcoe.c')
-rw-r--r--drivers/scsi/fcoe/fcoe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 81601269f4cd..14a4017a1535 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -466,6 +466,9 @@ static int fcoe_if_destroy(struct net_device *netdev)
/* tear-down the FCoE controller */
fcoe_ctlr_destroy(&fc->ctlr);
+ /* Free queued packets for the per-CPU receive threads */
+ fcoe_percpu_clean(lp);
+
/* Cleanup the fc_lport */
fc_lport_destroy(lp);
fc_fcp_destroy(lp);
@@ -478,9 +481,6 @@ static int fcoe_if_destroy(struct net_device *netdev)
if (lp->emp)
fc_exch_mgr_free(lp->emp);
- /* Free the per-CPU receive threads */
- fcoe_percpu_clean(lp);
-
/* Free existing skbs */
fcoe_clean_pending_queue(lp);