diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-03 21:14:23 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:22 -0400 |
commit | 501d857ec93e797d4872d6b9b265b7472b455ddf (patch) | |
tree | f4bbdd316145573af7234960599e45592b73f8fe /include/net | |
parent | 05155c83d13b983ac2c5691575fd471543df31fe (diff) |
[IEEE80211]: Fix softmac lockdep reports.
It seems I was actually able to hit this deadlock, on my quad G5 softmac
locks up more often than not. This fixes it by using an own workqueue
that can safely be flushed under RTNL.
Not sure if the patch is correct with the workqueue naming. And don't
think with the patch it doesn't continually lock up. It still does, just
doesn't invoke lockdep warnings all the time.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ieee80211softmac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ieee80211softmac.h b/include/net/ieee80211softmac.h index 89119277553d..1ef6282fdded 100644 --- a/include/net/ieee80211softmac.h +++ b/include/net/ieee80211softmac.h | |||
@@ -229,6 +229,8 @@ struct ieee80211softmac_device { | |||
229 | /* this lock protects this structure */ | 229 | /* this lock protects this structure */ |
230 | spinlock_t lock; | 230 | spinlock_t lock; |
231 | 231 | ||
232 | struct workqueue_struct *wq; | ||
233 | |||
232 | u8 running; /* SoftMAC started? */ | 234 | u8 running; /* SoftMAC started? */ |
233 | u8 scanning; | 235 | u8 scanning; |
234 | 236 | ||