aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Aleksandrov <nikolay@redhat.com>2014-09-09 17:16:57 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-09 20:31:35 -0400
commit51752afa735ab28b6023fcf22ec63955107f8a65 (patch)
treededfc7ce6b37afe5586fc54639cfa9e848d8f6e0
parentc6ec956b73dbeb23f1f58aaf4dbb73eb509779c0 (diff)
cxgb4: remove bond->lock
RTNL should be already held in the notifier call so the slave list can be traversed without a problem, remove the unnecessary bond->lock. CC: Hariprasad S <hariprasad@chelsio.com> Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index 8c34811a1128..d6a9a0bc94f3 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -4390,7 +4390,6 @@ static int cxgb4_inet6addr_handler(struct notifier_block *this,
4390 * bond. We need to find such different adapters and add clip 4390 * bond. We need to find such different adapters and add clip
4391 * in all of them only once. 4391 * in all of them only once.
4392 */ 4392 */
4393 read_lock(&bond->lock);
4394 bond_for_each_slave(bond, slave, iter) { 4393 bond_for_each_slave(bond, slave, iter) {
4395 if (!first_pdev) { 4394 if (!first_pdev) {
4396 ret = clip_add(slave->dev, ifa, event); 4395 ret = clip_add(slave->dev, ifa, event);
@@ -4404,7 +4403,6 @@ static int cxgb4_inet6addr_handler(struct notifier_block *this,
4404 to_pci_dev(slave->dev->dev.parent)) 4403 to_pci_dev(slave->dev->dev.parent))
4405 ret = clip_add(slave->dev, ifa, event); 4404 ret = clip_add(slave->dev, ifa, event);
4406 } 4405 }
4407 read_unlock(&bond->lock);
4408 } else 4406 } else
4409 ret = clip_add(ifa->idev->dev, ifa, event); 4407 ret = clip_add(ifa->idev->dev, ifa, event);
4410 4408