From: Jesper Dangaard Brouer Date: Fri, 26 Jun 2009 10:46:03 +0000 (+0000) Subject: ipv6: Use rcu_barrier() on module unload. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f2ccd00f224a4e2d6d26f590f3e6851f3deef99;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 85b3d0036af..caa0278d30a 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);