We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a9c25 commit 3ba359cCopy full SHA for 3ba359c
drivers/net/bonding/bond_main.c
@@ -1121,13 +1121,10 @@ static struct slave *bond_find_best_slave(struct bonding *bond)
1121
return bestslave;
1122
}
1123
1124
+/* must be called in RCU critical section or with RTNL held */
1125
static bool bond_should_notify_peers(struct bonding *bond)
1126
{
- struct slave *slave;
1127
-
1128
- rcu_read_lock();
1129
- slave = rcu_dereference(bond->curr_active_slave);
1130
- rcu_read_unlock();
+ struct slave *slave = rcu_dereference_rtnl(bond->curr_active_slave);
1131
1132
if (!slave || !bond->send_peer_notif ||
1133
bond->send_peer_notif %
0 commit comments