* [PATCH] mac80211: add missing rcu_barrier
@ 2011-05-14 9:04 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2011-05-14 9:04 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
From: Johannes Berg <johannes.berg@intel.com>
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().
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
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(+)
--- a/net/mac80211/main.c 2011-05-14 11:01:03.000000000 +0200
+++ b/net/mac80211/main.c 2011-05-14 11:01:42.000000000 +0200
@@ -1090,6 +1090,8 @@ static void __exit ieee80211_exit(void)
ieee80211s_stop();
ieee80211_iface_exit();
+
+ rcu_barrier();
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-14 9:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-14 9:04 [PATCH] mac80211: add missing rcu_barrier Johannes Berg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.