Skip to content

Commit

Permalink
ipv6: Use rcu_barrier() on module unload.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Dangaard Brouer authored and David S. Miller committed Jun 26, 2009
1 parent 10e8544 commit 1f2ccd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ipv6/af_inet6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1f2ccd0

Please sign in to comment.