diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-03 18:14:23 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:52:22 -0700 |
commit | 501d857ec93e797d4872d6b9b265b7472b455ddf (patch) | |
tree | f4bbdd316145573af7234960599e45592b73f8fe /include/net | |
parent | 05155c83d13b983ac2c5691575fd471543df31fe (diff) | |
download | linux-3.10-501d857ec93e797d4872d6b9b265b7472b455ddf.tar.gz linux-3.10-501d857ec93e797d4872d6b9b265b7472b455ddf.tar.bz2 linux-3.10-501d857ec93e797d4872d6b9b265b7472b455ddf.zip |
[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 89119277553..1ef6282fdde 100644 --- a/include/net/ieee80211softmac.h +++ b/include/net/ieee80211softmac.h @@ -229,6 +229,8 @@ struct ieee80211softmac_device { /* this lock protects this structure */ spinlock_t lock; + struct workqueue_struct *wq; + u8 running; /* SoftMAC started? */ u8 scanning; |