Skip to contentSkip to conversation

mac80211: add missing rcu_barrier

PATCH New Johannes Berg 1 participant 1 message May 14, 2011 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: add missing rcu_barrier

From: Johannes Berg <[email protected]>

mac80211 uses call_rcu() with functions that are defined in the module, so it must use rcu_barrier() at module exit time.

Luckily, this seems to not be a problem in practice as module unload and unregistration takes a long time and probably does multiple synchronize_rcu().

---
Might want to apply this before the mesh patch that uses call_rcu I just sent a few minutes ago.

 net/mac80211/main.c |    2 ++
 1 file changed, 2 insertions(+)
net/mac80211/main.c +2 -0
@@ -1090,6 +1090,8 @@ static void __exit ieee80211_exit(void)
 		ieee80211s_stop();
 
 	ieee80211_iface_exit();
+
+	rcu_barrier();
 }