diff options
author | dingtianhong <dingtianhong@huawei.com> | 2013-12-13 10:19:50 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-14 01:58:01 -0500 |
commit | 2e52f4fe3655c7a2311070c6713f7feabc75486c (patch) | |
tree | c24f81f012e80b79b60f00653e162692f236fa83 /net/core | |
parent | 733ab63935beab905b03a329cdc544e8c171b6b9 (diff) |
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>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions