All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: flush workqueue a second time in suspend()
@ 2009-01-24 18:21 Bob Copeland
  0 siblings, 0 replies; only message in thread
From: Bob Copeland @ 2009-01-24 18:21 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, johannes

Drivers can theoretically queue more work in one of their callbacks
from mac80211 suspend, so let's flush it once more to be on the safe
side, just before calling ->stop().

Signed-off-by: Bob Copeland <me@bobcopeland.com>
---
 net/mac80211/pm.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
index 6d17ed7..44525f5 100644
--- a/net/mac80211/pm.c
+++ b/net/mac80211/pm.c
@@ -44,6 +44,9 @@ int __ieee80211_suspend(struct ieee80211_hw *hw)
 		}
 	}
 
+	/* flush again, in case driver queued work */
+	flush_workqueue(local->hw.workqueue);
+
 	/* stop hardware */
 	if (local->open_count) {
 		ieee80211_led_radio(local, false);
-- 
1.6.0.6

-- 
Bob Copeland %% www.bobcopeland.com


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-24 18:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-24 18:21 [PATCH] mac80211: flush workqueue a second time in suspend() Bob Copeland

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.