mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
ipv6: Use rcu_barrier() on module unload.
The ipv6 module uses rcu_call() thus it should use rcu_barrier() on module unload. 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
10e8544801
commit
1f2ccd00f2
1 changed files with 2 additions and 0 deletions
|
@ -1284,6 +1284,8 @@ static void __exit inet6_exit(void)
|
|||
proto_unregister(&udplitev6_prot);
|
||||
proto_unregister(&udpv6_prot);
|
||||
proto_unregister(&tcpv6_prot);
|
||||
|
||||
rcu_barrier(); /* Wait for completion of call_rcu()'s */
|
||||
}
|
||||
module_exit(inet6_exit);
|
||||
|
||||
|
|
Loading…
Reference in a new issue