Skip to contentSkip to conversation

bonding: cleanup unneeded rcu_read_lock()

PATCH Applied Veaceslav Falico 2 participants 2 messages Mar 26, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bonding: cleanup unneeded rcu_read_lock()

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.

---
 drivers/net/bonding/bond_main.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/net/bonding/bond_main.c +1 -2
index 6bbd90e..11a8cb3 100644
@@ -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();
 }
 
 /*
Signature · 1 line
1.7.1
maintainer Applied
#1 lore raw

From: Veaceslav Falico <[email protected]>
Date: Tue, 26 Mar 2013 15:10:02 +0100

Quoted 5 lines

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.

Applied.