Re: mac80211 flush callback

From
Johannes Berg <johannes@sipsolutions.net>
Date
2012-09-05 16:33:36
Reply to
Arend van Spriel, 2012-09-05
On Wed, 2012-09-05 at 18:27 +0200, Arend van Spriel wrote:
On 09/05/2012 03:53 PM, Johannes Berg wrote:
quoted
Hi Arend,
quoted
I ma currently looking into a long standing issue with flush callback in
brcmsmac. After some debugging I found out that mac80211 keeps pushing
packets to brcmsmac during the flush. Is that correct? Should brcmsmac
(or any other driver) stop the mac80211 queues during the flush? My
assumption was that mac80211 would not do transmits during the flush,
but it probably comes from another worker thread.
Hmm, good question, this area isn't quite fully worked out yet I
think ... probably better to stop queues yourself for now, although I
guess mac80211 should really take care to do it ...
Thanks, Johannes

I did look at some other driver and it seems they grab a mutex in the 
flush that is (probably?) also grabbed in the tx path thus blocking it. 
For brcmsmac I submitted a patch to explicitly stop the queues in the flush.
I don't think any driver could possibly grab a mutex in the TX path
since it needs to be atomic? :)

johannes
Thread (4 messages) 4 messages, 2 authors, last reply 2012-09-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help