]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: remove unwanted lock for bond enslave and release
authordingtianhong <dingtianhong@huawei.com>
Fri, 13 Dec 2013 02:20:07 +0000 (10:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 14 Dec 2013 06:58:02 +0000 (01:58 -0500)
commite44a59445e4ab3c081b5ad4a01f58971af20f4ce
tree785b8eca7f72534269947785e9add44cd4cb400f
parentda351ec30ccc24449c9174baf1270626d68cbb48
bonding: remove unwanted lock for bond enslave and release

The bond_change_active_slave() and bond_select_active_slave()
do't need bond lock anymore, so remove the unwanted bond lock
for these two functions.

The bond_select_active_slave() will release and acquire
curr_slave_lock, so the curr_slave_lock need to protect
the function.

In bond enslave and bond release, the bond slave list is also
protected by RTNL, so bond lock is no need to exist, remove
the lock and clean the functions.

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