batman-adv: protect the local and the global trans-tables with rcu
The local and the global translation-tables are now lock free and rcu protected. Signed-off-by: Antonio Quartulli <ordex@autistici.org> Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:

committed by
Sven Eckelmann

parent
cc47f66e6b
commit
7683fdc1e8
@@ -90,9 +90,7 @@ static void update_transtable(struct bat_priv *bat_priv,
|
||||
/* Even if we received the crc into the OGM, we prefer
|
||||
* to recompute it to spot any possible inconsistency
|
||||
* in the global table */
|
||||
spin_lock_bh(&bat_priv->tt_ghash_lock);
|
||||
orig_node->tt_crc = tt_global_crc(bat_priv, orig_node);
|
||||
spin_unlock_bh(&bat_priv->tt_ghash_lock);
|
||||
/* Roaming phase is over: tables are in sync again. I can
|
||||
* unset the flag */
|
||||
orig_node->tt_poss_change = false;
|
||||
|
Reference in New Issue
Block a user