All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH wireless-next] mac80211: fix double flush workqueue
@ 2015-05-15  6:26 Varka Bhadram
  2015-05-19  7:26 ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Varka Bhadram @ 2015-05-15  6:26 UTC (permalink / raw)
  To: linux-wireless; +Cc: johannes, Varka Bhadram

In suspend functionality flushing of the workqueue is done
with ieee80211_stop_device(). This patch avoid flushing
the workqueue for two times.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
 net/mac80211/pm.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
index ac6ad62..e433d6e 100644
--- a/net/mac80211/pm.c
+++ b/net/mac80211/pm.c
@@ -47,8 +47,6 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
 	/* make quiescing visible to timers everywhere */
 	mb();
 
-	flush_workqueue(local->workqueue);
-
 	/* Don't try to run timers while suspended. */
 	del_timer_sync(&local->sta_cleanup);
 
-- 
1.7.9.5


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

* Re: [PATCH wireless-next] mac80211: fix double flush workqueue
  2015-05-15  6:26 [PATCH wireless-next] mac80211: fix double flush workqueue Varka Bhadram
@ 2015-05-19  7:26 ` Johannes Berg
  2015-05-25  4:02   ` Varka Bhadram
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2015-05-19  7:26 UTC (permalink / raw)
  To: Varka Bhadram; +Cc: linux-wireless, Varka Bhadram

On Fri, 2015-05-15 at 11:56 +0530, Varka Bhadram wrote:
> In suspend functionality flushing of the workqueue is done
> with ieee80211_stop_device(). This patch avoid flushing
> the workqueue for two times.

Why do you think this makes sense?

This is done in entirely different places in the code.

johannes


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

* Re: [PATCH wireless-next] mac80211: fix double flush workqueue
  2015-05-19  7:26 ` Johannes Berg
@ 2015-05-25  4:02   ` Varka Bhadram
  2015-05-26 13:16     ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Varka Bhadram @ 2015-05-25  4:02 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Varka Bhadram

Hi Johannes Berg,

On 05/19/2015 12:56 PM, Johannes Berg wrote:

> On Fri, 2015-05-15 at 11:56 +0530, Varka Bhadram wrote:
>> In suspend functionality flushing of the workqueue is done
>> with ieee80211_stop_device(). This patch avoid flushing
>> the workqueue for two times.
> Why do you think this makes sense?
>
> This is done in entirely different places in the code.

Initially flushing of workqueue is done at [1], and also flushing of the same workqueue
has done with ieee80211_stop_device() at [2].

[1]:https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211-next.git/tree/net/mac80211/pm.c#n50
[2]:https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211-next.git/tree/net/mac80211/pm.c#n154

--
Thanks,
Varka Bhadram.


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

* Re: [PATCH wireless-next] mac80211: fix double flush workqueue
  2015-05-25  4:02   ` Varka Bhadram
@ 2015-05-26 13:16     ` Johannes Berg
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2015-05-26 13:16 UTC (permalink / raw)
  To: Varka Bhadram; +Cc: linux-wireless, Varka Bhadram

On Mon, 2015-05-25 at 09:32 +0530, Varka Bhadram wrote:

> Initially flushing of workqueue is done at [1], and also flushing of the same workqueue
> has done with ieee80211_stop_device() at [2].
> 
> [1]:https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211-next.git/tree/net/mac80211/pm.c#n50
> [2]:https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211-next.git/tree/net/mac80211/pm.c#n154

I *know*, I wrote much of this code. But there are so many things
between these two points that you'll have to try FAR harder to convince
me that removing any one these calls is actually a good idea.

johannes


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

end of thread, other threads:[~2015-05-26 13:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-15  6:26 [PATCH wireless-next] mac80211: fix double flush workqueue Varka Bhadram
2015-05-19  7:26 ` Johannes Berg
2015-05-25  4:02   ` Varka Bhadram
2015-05-26 13:16     ` Johannes Berg

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.