bonding: replace read_lock to rcu_read_lock for bond_3ad_get_active_agg_info()
Subsystems (3)
PATCH 3/6 bonding: replace read_lock to rcu_read_lock for bond_3ad_get_active_agg_info()
the bond slave list will protected by rcu, so the read lock should replace by rcu read lock.
Signed-off-by Ding Tianhong <[email protected]>
Cc Nikolay Aleksandrov <[email protected]>
--- drivers/net/bonding/bond_3ad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/bonding/bond_3ad.c +2 -2
@@ -2408,9 +2408,9 @@ int bond_3ad_get_active_agg_info(struct bonding *bond, struct ad_info *ad_info) {int ret; -read_lock (&bond->lock); +rcu_read_lock (); ret =__bond_3ad_get_active_agg_info (bond, ad_info); -read_unlock (&bond->lock); +rcu_read_unlock ();return ret; }
Signature · 1 line
1.8.2.1