From: Jesper Dangaard Brouer Date: Fri, 26 Jun 2009 10:46:03 +0000 (+0000) Subject: ipv6: Use rcu_barrier() on module unload. X-Git-Tag: v2.6.31-rc2~26^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f2ccd00f224a4e2d6d26f590f3e6851f3deef99;p=platform%2Fkernel%2Flinux-stable.git 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 Signed-off-by: Jesper Dangaard Brouer Signed-off-by: David S. Miller --- diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 85b3d00..caa0278 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);