From: dingtianhong Date: Fri, 13 Dec 2013 02:19:50 +0000 (+0800) Subject: bonding: rebuild the lock use for bond_loadbalance_arp_mon() X-Git-Tag: v3.14-rc1~94^2~495^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e52f4fe3655c7a2311070c6713f7feabc75486c;p=pandora-kernel.git 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 Suggested-by: Veaceslav Falico Signed-off-by: Ding Tianhong Signed-off-by: David S. Miller --- Reading git-diff-tree failed