]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: add rtnl protection for bonding_store_fail_over_mac
authordingtianhong <dingtianhong@huawei.com>
Tue, 23 Jul 2013 07:25:39 +0000 (15:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jul 2013 00:45:23 +0000 (17:45 -0700)
commit3596e90962ab17e9ae043da32e13e95b365e9bf2
tree81801c39a71e208ea61861b753b4cc5ef3883b82
parentc1b68c35050c1a7e6193ce3fc1b306b6a431b2f1
bonding: add rtnl protection for bonding_store_fail_over_mac

We need rtnl protection while reading slave_cnt and updating
the .fail_over_mac, and it also follows the logic "don't change
anything slave-related without rtnl". :)

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Cc: Jay Vosburgh <fubar@us.ibm.com>
Cc: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c