The following commit has been merged in the master branch: commit 0893b89b1bc3640609d572b99201228cd99ad80b Author: Sven Eckelmann firstname.lastname@example.org Date: Sat Sep 18 11:11:40 2010 +0000
batman-adv: wait for call_rcu before unloading module
synchronize_rcu respective synchronize_net only waits for the rcu grace period to elapse and we may fail to finish the calls which were made to call_rcu in that time. In result the module could be unloaded during the execution of the RCU callbacks.
rcu_barrier will now wait for all outstanding RCU callbacks to finish before continuing.
Signed-off-by: Sven Eckelmann email@example.com
diff --git a/main.c b/main.c index e8acb46..a067f75 100644 --- a/main.c +++ b/main.c @@ -74,7 +74,7 @@ static void __exit batman_exit(void) destroy_workqueue(bat_event_workqueue); bat_event_workqueue = NULL;
- synchronize_net(); + rcu_barrier(); }
int mesh_init(struct net_device *soft_iface)