Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f161fb72 authored by Joe Eykholt's avatar Joe Eykholt Committed by James Bottomley
Browse files

[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: default avatarJoe Eykholt <jeykholt@cisco.com>
Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 7f74549f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);