Revert "net: bonding: correctly annotate RCU in bond_should_notify_peers()"

This reverts commit 7dc1b04912.
This commit is contained in:
Ksawlii 2024-11-24 00:23:56 +01:00
parent d48b5ce07c
commit fa72cb31d6

View file

@ -1052,10 +1052,13 @@ static struct slave *bond_find_best_slave(struct bonding *bond)
return bestslave;
}
/* must be called in RCU critical section or with RTNL held */
static bool bond_should_notify_peers(struct bonding *bond)
{
struct slave *slave = rcu_dereference_rtnl(bond->curr_active_slave);
struct slave *slave;
rcu_read_lock();
slave = rcu_dereference(bond->curr_active_slave);
rcu_read_unlock();
if (!slave || !bond->send_peer_notif ||
bond->send_peer_notif %