mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
bridge: Use rcu_barrier() instead of syncronize_net() on unload.
When unloading modules that uses call_rcu() callbacks, then we must use rcu_barrier(). This module uses syncronize_net() which is not enough to be sure that all callback has been completed. Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1f2ccd00f2
commit
473c22d759
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ static void __exit br_deinit(void)
|
|||
|
||||
unregister_pernet_subsys(&br_net_ops);
|
||||
|
||||
synchronize_net();
|
||||
rcu_barrier(); /* Wait for completion of call_rcu()'s */
|
||||
|
||||
br_netfilter_fini();
|
||||
#if defined(CONFIG_ATM_LANE) || defined(CONFIG_ATM_LANE_MODULE)
|
||||
|
|
Loading…
Reference in a new issue