]> git.baikalelectronics.ru Git - kernel.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)
commitb3f3e814ce9dca73f205ba48948b06a67a69aee4
tree115f1f6f1acd454db2ae0c56bc4e575476fa7b1e
parentf4408b5741eba715db8bc81456477285401ef4fe
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