]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix set_multicast_list locking
authorJay Vosburgh <fubar@us.ibm.com>
Wed, 30 Jan 2008 02:07:44 +0000 (18:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:28:12 +0000 (04:28 -0800)
commit887de4ee0d4b5214826ff04a3546c30bfa0fc6fa
tree4bab44a6762a87c59ba22ab688326f1a6fe075a1
parent8e7e3f98b6f910fbaa9589d3fd110b24c643e102
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