]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: add rtnl lock and remove read lock for bond sysfs
authordingtianhong <dingtianhong@huawei.com>
Tue, 15 Oct 2013 08:28:42 +0000 (16:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Oct 2013 19:32:03 +0000 (15:32 -0400)
commit05671e2e49e618141df4743383e2cb457d1128ec
tree96e159c832423cfeda2d18aff65e2d2afea2d4a5
parente000f0acc1ae3847f24fb36d89e653701c92a182
bonding: add rtnl lock and remove read lock for bond sysfs

The bond_for_each_slave() will not be protected by read_lock(),
only protected by rtnl_lock(), so need to replace read_lock()
with rtnl_lock().

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_sysfs.c