Revert "net: bonding: correctly annotate RCU in bond_should_notify_peers()"
This reverts commit 7dc1b04912
.
This commit is contained in:
parent
d48b5ce07c
commit
fa72cb31d6
1 changed files with 5 additions and 2 deletions
|
@ -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 %
|
||||
|
|
Loading…
Reference in a new issue