aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorDing Tianhong <[email protected]>2014-01-28 03:48:53 +0000
committerDavid S. Miller <[email protected]>2014-01-29 07:48:33 +0000
commit6fde8f037e604e05df1529e4689041715d6d55d2 (patch)
tree4cdf943fb2d475899f0a0d5a40cd4002184faff1 /drivers/net/xen-netback/interface.c
parenttun: add device name(iff) field to proc fdinfo entry (diff)
downloadkernel-6fde8f037e604e05df1529e4689041715d6d55d2.tar.gz
kernel-6fde8f037e604e05df1529e4689041715d6d55d2.zip
bonding: fix locking in bond_loadbalance_arp_mon()
The commit 1d3ee88ae0d605629bf369 (bonding: add netlink attributes to slave link dev) has add rtmsg_ifinfo() in bond_set_active_slave() and bond_set_backup_slave(), so the two function need to called in RTNL lock, but bond_loadbalance_arp_mon() only calling these functions in RCU, warning message will occurs. fix this by add a new function bond_slave_state_change(), which will reset the slave's state after slave link check, so remove the bond_set_xxx_slave() from the cycle and only record the slave_state_changed, this will call the new function to set all slaves to new state in RTNL later. Cc: Jay Vosburgh <[email protected]> Cc: Veaceslav Falico <[email protected]> Cc: Andy Gospodarek <[email protected]> Signed-off-by: Ding Tianhong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions