]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
bonding: do not acquire rtnl in ARP monitor
authorJay Vosburgh <fubar@us.ibm.com>
Wed, 30 Jan 2008 02:07:47 +0000 (18:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:28:33 +0000 (04:28 -0800)
commit21c9d8d73dd1a152c49b4e3176193a099849d4c9
tree115f1f6f1acd454db2ae0c56bc4e575476fa7b1e
parent2439f9ebd45349246b0fec7c47e6d0e05b1357c7
bonding: do not acquire rtnl in ARP monitor

The ARP monitor functions currently acquire RTNL when performing
failover operations, but do so incorrectly (out of order).  This causes
various warnings from might_sleep.

The ARP monitor isn't supported for any of the bonding modes
that actually require RTNL, so it is safe to not hold RTNL when
failing over in the ARP monitor.

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