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)
commit9402b746e7ba0f317ffa465a4c5128c7c220f27b
tree81801c39a71e208ea61861b753b4cc5ef3883b82
parent38c4916a7874aff9dc07a68bf8e7e4136b00f8dd
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