mac80211: make workqueue freezable
PATCH 1/1 mac80211: make workqueue freezable
This patch makes the mac80211 workqueue freezable making it interact a bit better with system suspend and not try to ping the AP while the hardware is down.
This doesn't really help with implementing proper suspend in any way but makes some bad things trigger less.
---
I'm not sure whether we should put this into 2.6.26 or not, while it might help a bit it doesn't really do much over what the tx bugs finder already does except avoid sending out the packets that froze b43 in the first place...
Ivo, you might consider using =EF=BB=BFcreate_freezeable_workqueue for = your
rt2x00 patch though.
net/mac80211/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
--- everything.orig/net/mac80211/main.c 2008-06-26 18:21:14.000000000 +=
0200
+++ everything/net/mac80211/main.c 2008-06-26 18:21:16.000000000 +0200
@@ -1774,7 +1774,7 @@ int ieee80211_register_hw(struct ieee802
list_add_tail(&sdata->list, &local->interfaces);
=20
name =3D wiphy_dev(local->hw.wiphy)->driver->name;
- local->hw.workqueue =3D create_singlethread_workqueue(name);
+ local->hw.workqueue =3D create_freezeable_workqueue(name);
if (!local->hw.workqueue) {
result =3D -ENOMEM;
goto fail_workqueue;
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Johannes Berg
This patch makes the mac80211 workqueue freezable making it interact a bit better with system suspend and not try to ping the AP while the hardware is down.
=20
This doesn't really help with implementing proper suspend in any way but makes some bad things trigger less.
=20Signed-off-by Johannes Berg <[email protected]>---
I'm not sure whether we should put this into 2.6.26 or not, while it might help a bit it doesn't really do much over what the tx bugs find=
er
Quoted 1 line
already does except avoid sending out the packets that froze b43 in t=
he
Quoted 3 lines
first place...
=20
Ivo, you might consider using =EF=BB=BFcreate_freezeable_workqueue fo=
r your
Quoted 1 line
rt2x00 patch though.
Will do. Thanks for the tip.
Ivo
Quoted 4 lines
net/mac80211/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)=20
---everything.orig/net/mac80211/main.c2008-06-26 18:21:14.000000000=
+0200
Quoted 1 line
+++
everything/net/mac80211/main.c2008-06-26 18:21:16.000000000 +020=
0
Quoted 9 lines
(quoted diff) +0
-0@@ -1774,7 +1774,7 @@ int ieee80211_register_hw(struct ieee802 list_add_tail(&sdata->list, &local->interfaces);=20
(quoted diff) +1
-1name =3D wiphy_dev(local->hw.wiphy)->driver->name; - local->hw.workqueue =3D create_singlethread_workqueue(name); + local->hw.workqueue =3D create_freezeable_workqueue(name); if (!local->hw.workqueue) { result =3D -ENOMEM; goto fail_workqueue;
Quoted 3 lines
=20
=20
=20
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Ivo van Doorn
Quoted 10 lines · Johannes Berg
This patch makes the mac80211 workqueue freezable making it interact a bit better with system suspend and not try to ping the AP while the hardware is down.
=20
This doesn't really help with implementing proper suspend in any way but makes some bad things trigger less.
=20Signed-off-by Johannes Berg <[email protected]>---
I'm not sure whether we should put this into 2.6.26 or not, while i=
t
Quoted 1 line
Quoted 1 line
might help a bit it doesn't really do much over what the tx bugs fi=
nder
Quoted 1 line
Quoted 1 line
already does except avoid sending out the packets that froze b43 in=
the
Quoted 3 lines
Quoted 3 lines
first place...
=20
Ivo, you might consider using =EF=BB=BFcreate_freezeable_workqueue =
for your
Quoted 3 lines
Quoted 1 line
rt2x00 patch though.
=20
Will do. Thanks for the tip.
Ehm, on second thought I keep it as it is. Currently the rt2x00 will al= ready shut
down all work tasks during suspend and resumes them when the device is = restored.
The only task that needs to survive the suspend and resume task is the = link tuner,
and that one is automatically started when the radio is reenabled. And = not stopping
it manually during suspend, will cause problems (aka race conditions, w= hich have
appeared in the past when the link tuner continues running while the ra= dio is down)
Ivo
Quoted 4 lines
Quoted 4 lines
net/mac80211/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)=20
---everything.orig/net/mac80211/main.c2008-06-26 18:21:14.0000000=
00 +0200
Quoted 1 line
Quoted 1 line
+++
everything/net/mac80211/main.c2008-06-26 18:21:16.000000000 +0=
200
Quoted 7 lines
Quoted 7 lines
(quoted diff) +0
-0@@ -1774,7 +1774,7 @@ int ieee80211_register_hw(struct ieee802 list_add_tail(&sdata->list, &local->interfaces);=20
(quoted diff) +1
-1name =3D wiphy_dev(local->hw.wiphy)->driver->name; - local->hw.workqueue =3D create_singlethread_workqueue(name); + local->hw.workqueue =3D create_freezeable_workqueue(name); if (!local->hw.workqueue) {
Quoted 8 lines
Quoted 5 lines
(quoted diff) +0
-0result =3D -ENOMEM; goto fail_workqueue;=20
=20
=20=20
=20
=20
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html