Skip to content

Commit

Permalink
[SCSI] fcoe: stop delivery of received frames before doing lport_dest…
Browse files Browse the repository at this point in the history
…roy()

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>
  • Loading branch information
Joe Eykholt authored and James Bottomley committed Aug 22, 2009
1 parent 7f74549 commit f161fb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/scsi/fcoe/fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit f161fb7

Please sign in to comment.