netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Linux 2.4.30-rc2
       [not found] <20050326004631.GC17637@logos.cnet>
@ 2005-03-26 10:59 ` Willy Tarreau
  2005-03-26 21:41   ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Willy Tarreau @ 2005-03-26 10:59 UTC (permalink / raw)
  To: Marcelo Tosatti, davem; +Cc: linux-kernel, netdev

Marcelo, David,

could we merge this patch from Mitch Williams in 2.4.30 ? It fixes a
stack dump when unloading the bonding module in 802.3ad mode if spinlock
debugging is turned on.

Thanks in advance,
Willy


diff -urN linux-2.4.29/drivers/net/bonding/bond_main.c linux-2.4.29-bond-2.6.1/drivers/net/bonding/bond_main.c
--- linux-2.4.29/drivers/net/bonding/bond_main.c	Sun Dec 12 12:06:28 2004
+++ linux-2.4.29-bond-2.6.1/drivers/net/bonding/bond_main.c	Sun Feb  6 20:32:49 2005
@@ -469,6 +469,13 @@
  *	  * Add support for VLAN hardware acceleration capable slaves.
  *	  * Add capability to tag self generated packets in ALB/TLB modes.
  *	  Set version to 2.6.0.
+ * 2004/10/29 - Mitch Williams <mitch.a.williams at intel dot com>
+ *	- Fixed bug when unloading module while using 802.3ad.  If
+ *	  spinlock debugging is turned on, this causes a stack dump.
+ *	  Solution is to move call to dev_remove_pack outside of the
+ *	  spinlock.
+ *	  Set version to 2.6.1.
+ *
  */
 
 //#define BONDING_DEBUG 1
@@ -3565,14 +3572,14 @@
 {
 	struct bonding *bond = bond_dev->priv;
 
-	write_lock_bh(&bond->lock);
-
-	bond_mc_list_destroy(bond);
-
 	if (bond->params.mode == BOND_MODE_8023AD) {
 		/* Unregister the receive of LACPDUs */
 		bond_unregister_lacpdu(bond);
 	}
+
+	write_lock_bh(&bond->lock);
+
+	bond_mc_list_destroy(bond);
 
 	/* signal timers not to re-arm */
 	bond->kill_timers = 1;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Linux 2.4.30-rc2
  2005-03-26 10:59 ` Linux 2.4.30-rc2 Willy Tarreau
@ 2005-03-26 21:41   ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-03-26 21:41 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: marcelo.tosatti, linux-kernel, netdev


This should go through Jeff Garzik, at least let him review and look
over it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-26 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20050326004631.GC17637@logos.cnet>
2005-03-26 10:59 ` Linux 2.4.30-rc2 Willy Tarreau
2005-03-26 21:41   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).