datapath: Call rcu_barrier() before unloading module.
authorBen Pfaff <blp@nicira.com>
Thu, 7 May 2009 00:35:40 +0000 (17:35 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 12 May 2009 23:21:57 +0000 (16:21 -0700)
commit35cc2980d9393c16c69dfe5a3f9faddb77eb6811
tree1d1de6aaa315a17da05c0206e424c368d59f4b89
parent9735b6d11357f5fb535d5fb650d025cbf0f80593
datapath: Call rcu_barrier() before unloading module.

According to article "RCU and Unloadable Modules" available at lwn.net,
a module that uses RCU callbacks should call rcu_barrier() before
unloading, because synchronize_rcu() does not ensure that all RCU callbacks
have actually completed, only that a grace period has elapsed.
datapath/datapath.c