diff options
author | Jesper Dangaard Brouer <hawk@comx.dk> | 2009-06-26 12:46:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-26 22:51:31 +0200 |
commit | 1f2ccd00f224a4e2d6d26f590f3e6851f3deef99 (patch) | |
tree | fc9ed2324b0b789728df90b155bd61e310f42b70 | |
parent | decnet: Use rcu_barrier() on module unload. (diff) | |
download | linux-1f2ccd00f224a4e2d6d26f590f3e6851f3deef99.tar.xz linux-1f2ccd00f224a4e2d6d26f590f3e6851f3deef99.zip |
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>
-rw-r--r-- | net/ipv6/af_inet6.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 85b3d0036afd..caa0278d30a9 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c @@ -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); |