android_kernel_motorola_sm6225/drivers/net/bonding
nikolay@redhat.com 71bc3b2dc5 bonding: remove unnecessary read_locks of curr_slave_lock
In all the cases we already hold bond->lock for reading, so the slave
can't get away and the check != NULL is sufficient. curr_active_slave
can still change after the read_lock is unlocked prior to use of the
dereferenced value, so there's no need for it. It either contains a
valid slave which we use (and can't get away), or it is NULL which is
checked.
In some places the read_lock of curr_slave_lock was left because we need
it not to change while performing some action (e.g. syncing current
active slave's addresses, sending ARP requests through the active slave)
such cases will be dealt with individually while converting to RCU.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-08-01 16:42:02 -07:00
..
bond_3ad.c bonding: convert to list API and replace bond's custom list 2013-08-01 16:42:01 -07:00
bond_3ad.h bonding: fix multiple 3ad mode sysfs race conditions 2013-05-19 23:25:49 -07:00
bond_alb.c bonding: convert to list API and replace bond's custom list 2013-08-01 16:42:01 -07:00
bond_alb.h bonding: delete migrated IP addresses from the rlb hash table 2012-11-30 12:07:27 -05:00
bond_debugfs.c bonding: delete migrated IP addresses from the rlb hash table 2012-11-30 12:07:27 -05:00
bond_main.c bonding: remove unnecessary read_locks of curr_slave_lock 2013-08-01 16:42:02 -07:00
bond_procfs.c bonding: convert to list API and replace bond's custom list 2013-08-01 16:42:01 -07:00
bond_sysfs.c bonding: convert to list API and replace bond's custom list 2013-08-01 16:42:01 -07:00
bonding.h bonding: convert to list API and replace bond's custom list 2013-08-01 16:42:01 -07:00
Makefile bonding, ipv4, ipv6, vlan: Handle NETDEV_BONDING_FAILOVER like NETDEV_NOTIFY_PEERS 2011-04-17 23:36:03 -07:00