bonding: fix set_multicast_list locking
commit80ee5ad23150f1f3fe8d35728e860850ccea44da
authorJay Vosburgh <fubar@us.ibm.com>
Wed, 30 Jan 2008 02:07:44 +0000 (29 18:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:28:12 +0000 (3 04:28 -0800)
tree4bab44a6762a87c59ba22ab688326f1a6fe075a1
parenta42e534f1b6be7f2f68f83d29588c3f2736b4d25
bonding: fix set_multicast_list locking

This patch eliminates a problem (reported by lockdep) in the
bond_set_multicast_list function.  It first reduces the locking on
bond->lock to a simple read_lock, and second, adds netif_tx locking
around the bonding mc_list manipulations that occur outside of the
set_multicast_list function.

The original problem was related to IPv6 addrconf activity.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c