linux_dsm_epyc7002/drivers/net/bonding
Nikolay Aleksandrov 1c72cfdc96 bonding: clean curr_slave_lock use
Mostly all users of curr_slave_lock already have RTNL as we've discussed
previously so there's no point in using it, the one case where the lock
must stay is the 3ad code, in fact it's the only one.
It's okay to remove it from bond_do_fail_over_mac() as it's called with
RTNL and drops the curr_slave_lock anyway.
bond_change_active_slave() is one of the main places where
curr_slave_lock was used, it's okay to remove it as all callers use RTNL
these days before calling it, that's why we move the ASSERT_RTNL() in
the beginning to catch any potential offenders to this rule.
The RTNL argument actually applies to all of the places where
curr_slave_lock has been removed from in this patch.
Also remove the unnecessary bond_deref_active_protected() macro and use
rtnl_dereference() instead.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-13 16:29:06 -04:00
..
bond_3ad.c bonding: 3ad: clean up curr_slave_lock usage 2014-09-13 16:29:06 -04:00
bond_3ad.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-02-19 01:24:22 -05:00
bond_alb.c bonding: clean curr_slave_lock use 2014-09-13 16:29:06 -04:00
bond_alb.h bonding: Do not try to send packets over dead link in TLB mode. 2014-07-16 23:35:35 -07:00
bond_debugfs.c bonding: convert bond_debugfs.c to use netdev_printk instead of pr_ 2014-07-15 23:15:58 -07:00
bond_main.c bonding: clean curr_slave_lock use 2014-09-13 16:29:06 -04:00
bond_netlink.c bonding: convert primary_slave to use RCU 2014-09-09 17:31:35 -07:00
bond_options.c bonding: clean curr_slave_lock use 2014-09-13 16:29:06 -04:00
bond_options.h bonding: make a generic sysfs option store and fix comments 2014-05-09 16:12:51 -04:00
bond_procfs.c bonding: procfs: clean bond->lock usage and use RCU 2014-09-09 17:31:35 -07:00
bond_sysfs_slave.c bonding: use kobject_put instead of _del after kobject_add 2014-07-31 11:16:09 -07:00
bond_sysfs.c bonding: convert primary_slave to use RCU 2014-09-09 17:31:35 -07:00
bonding.h bonding: clean curr_slave_lock use 2014-09-13 16:29:06 -04:00
Makefile bonding: add sysfs /slave dir for bond slave devices. 2014-01-17 18:51:58 -08:00