]> 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)
commitaf023f5e9313e00689afd009c36e122613b01312
tree785b8eca7f72534269947785e9add44cd4cb400f
parent9327fe9e9a0857ba8c47f75a5e0d4865323afd4c
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