summaryrefslogtreecommitdiff
path: root/drivers/net/bonding/Makefile
diff options
context:
space:
mode:
authornikolay@redhat.com <nikolay@redhat.com>2013-08-01 14:54:48 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-08-01 23:42:02 (GMT)
commit71bc3b2dc5d02566afe1b23a7b72bfc8acdd04e1 (patch)
treea52f4d6130847f9089a5f02bec46750fec926725 /drivers/net/bonding/Makefile
parentdec1e90e8c7157a527faad95023d96dbc114fbac (diff)
downloadlinux-fsl-qoriq-71bc3b2dc5d02566afe1b23a7b72bfc8acdd04e1.tar.xz
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>
Diffstat (limited to 'drivers/net/bonding/Makefile')
0 files changed, 0 insertions, 0 deletions