Skip to content

Commit

Permalink
bonding: cleanup unneeded rcu_read_lock()
Browse files Browse the repository at this point in the history
bond_resend_igmp_join_requests_delayed() calls _resend_igmp_join_requests()
under rcu_read_lock(), while it gets its own rcu_read_lock() for the whole
function. Remove the lock from the _delayed function.

Signed-off-by: Veaceslav Falico <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Veaceslav Falico authored and davem330 committed Mar 26, 2013
1 parent e7333e3 commit ad999ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/bonding/bond_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,8 @@ static void bond_resend_igmp_join_requests_delayed(struct work_struct *work)
{
struct bonding *bond = container_of(work, struct bonding,
mcast_work.work);
rcu_read_lock();

bond_resend_igmp_join_requests(bond);
rcu_read_unlock();
}

/*
Expand Down

0 comments on commit ad999ee

Please sign in to comment.