]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: procfs: clean bond->lock usage and use RCU
authorNikolay Aleksandrov <nikolay@redhat.com>
Tue, 9 Sep 2014 21:17:01 +0000 (23:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 00:31:35 +0000 (17:31 -0700)
commite1f459640f7caceb3b56613c46d9859c44e8bb12
tree14e56ca371b6c631118ebec2c42b32b06bb7d82a
parent600874ff04832f9d8f583fb8813379f7c2445725
bonding: procfs: clean bond->lock usage and use RCU

Use RCU to protect against slave release, the proc show function will sync
with the bond destruction by the proc locks and the fact that the bond is
released after NETDEV_UNREGISTER which causes the bonding to remove the
proc entry.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_procfs.c