bonding: rebuild the lock use for bond_loadbalance_arp_mon()
authordingtianhong <dingtianhong@huawei.com>
Fri, 13 Dec 2013 02:19:50 +0000 (10:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Dec 2013 06:58:01 +0000 (01:58 -0500)
commit2e52f4fe3655c7a2311070c6713f7feabc75486c
treec24f81f012e80b79b60f00653e162692f236fa83
parent733ab63935beab905b03a329cdc544e8c171b6b9
bonding: rebuild the lock use for bond_loadbalance_arp_mon()

The bond_loadbalance_arp_mon() use the bond lock to protect the
bond slave list, it is no effect, so I could use RTNL or RCU to
replace it, considering the performance impact, the RCU is more
better here, so the bond lock replace with the RCU.

The bond_select_active_slave() need RTNL and curr_slave_lock
together, but there is no RTNL lock here, so add a rtnl_rtylock.

Suggested-by: Jay Vosburgh <fubar@us.ibm.com>
Suggested-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c