linux/drivers/net/bonding
Veaceslav Falico e7778a61ff bonding: don't call update_speed_duplex() under spinlocks
[ Upstream commit 876254ae27 ]

bond_update_speed_duplex() might sleep while calling underlying slave's
routines. Move it out of atomic context in bond_enslave() and remove it
from bond_miimon_commit() - it was introduced by commit 546add79, however
when the slave interfaces go up/change state it's their responsibility to
fire NETDEV_UP/NETDEV_CHANGE events so that bonding can properly update
their speed.

I've tested it on all combinations of ifup/ifdown, autoneg/speed/duplex
changes, remote-controlled and local, on (not) MII-based cards. All changes
are visible.

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-28 12:11:52 -07:00
..
bond_3ad.c bonding: don't increase rx_dropped after processing LACPDUs 2012-05-10 23:30:01 -04:00
bond_3ad.h bonding: don't increase rx_dropped after processing LACPDUs 2012-05-10 23:30:01 -04:00
bond_alb.c bonding: Fix LACPDU rx_dropped commit. 2012-05-13 15:45:13 -04:00
bond_alb.h bonding: move processing of recv handlers into handle_frame() 2011-04-25 12:00:30 -07:00
bond_debugfs.c bonding: debugfs and network namespaces are incompatible 2012-07-19 08:58:58 -07:00
bond_main.c bonding: don't call update_speed_duplex() under spinlocks 2013-03-28 12:11:52 -07:00
bond_procfs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2011-11-07 10:55:33 -08:00
bond_sysfs.c bonding: fix race condition in bonding_store_slaves_active 2013-01-11 09:06:26 -08:00
bonding.h bonding: Fix LACPDU rx_dropped commit. 2012-05-13 15:45:13 -04:00
Makefile bonding, ipv4, ipv6, vlan: Handle NETDEV_BONDING_FAILOVER like NETDEV_NOTIFY_PEERS 2011-04-17 23:36:03 -07:00