linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211: Properly kill tasklets before shutdown
@ 2007-03-06 18:01 Michael Buesch
  2007-03-08  1:26 ` Johannes Berg
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Michael Buesch @ 2007-03-06 18:01 UTC (permalink / raw)
  To: Jiri Benc; +Cc: John Linville, linux-wireless, Johannes Berg

We need to do tasklet_kill() on any tasklet on unregister
to make sure the tasklet is not running _and_ scheduled anymore.
(tasklet_disable() only ensures it's not running anymore).

This fixes the tasklet related crash that was reported some time ago.

Signed-off-by: Michael Buesch <mb@bu3sch.de>

Index: bu3sch-wireless-dev/net/mac80211/ieee80211.c
===================================================================
--- bu3sch-wireless-dev.orig/net/mac80211/ieee80211.c	2007-03-06 15:55:53.000000000 +0100
+++ bu3sch-wireless-dev/net/mac80211/ieee80211.c	2007-03-06 15:58:10.000000000 +0100
@@ -4761,8 +4761,8 @@
 	struct ieee80211_sub_if_data *sdata, *tmp;
 	int i;
 
-	tasklet_disable(&local->tasklet);
-	/* TODO: skb_queue should be empty here, no need to do anything? */
+	tasklet_kill(&local->tx_pending_tasklet);
+	tasklet_kill(&local->tasklet);
 
 	rtnl_lock();
 	local->reg_state = IEEE80211_DEV_UNREGISTERED;

-- 
Greetings Michael.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-03-23 20:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 18:01 [PATCH] mac80211: Properly kill tasklets before shutdown Michael Buesch
2007-03-08  1:26 ` Johannes Berg
2007-03-08 15:39   ` Michael Buesch
2007-03-08 15:43     ` Johannes Berg
2007-03-16 18:22 ` Michael Buesch
2007-03-23 17:17 ` Jiri Benc
2007-03-23 17:22   ` Michael Buesch
2007-03-23 17:32     ` Jiri Benc
2007-03-23 18:36       ` Michael Buesch
2007-03-23 20:16         ` Jiri Benc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).