All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helmut Schaa <helmut.schaa@googlemail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Re: Re: [RFC] mac80211: Fix possible race between sta_unblock and network softirq
Date: Mon, 16 Jan 2012 20:32:07 +0100	[thread overview]
Message-ID: <12639684.2oQAdY9LVf@helmutmobil.site> (raw)
In-Reply-To: <1326741914.3510.25.camel@jlt3.sipsolutions.net>

Am Montag, 16. Januar 2012, 20:25:14 schrieb Johannes Berg:
> On Mon, 2012-01-16 at 20:22 +0100, Helmut Schaa wrote:
> > Am Montag, 16. Januar 2012, 17:51:33 schrieb Johannes Berg:
> > > On Mon, 2012-01-16 at 16:42 +0100, Helmut Schaa wrote:
> > > > Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
> > > > ---
> > > > 
> > > > I'm currently writing some code for rt2800 that requires the driver
> > > > to stop sending to a specific station for a short period of time
> > > > (until all AMPDUs are finished to work around a hw issue that affects
> > > > rate sampling with minstrel_ht). I decided to give
> > > > ieee80211_sta_block_awake a try, however, the machine sometimes locked
> > > > up while running some performance tests but due to a hw watchdog I
> > > > wasn't able to get any sort of backtrace :(
> > > > 
> > > > So, while doing some review of the ieee80211_sta_block_awake I came
> > > > across this and wondered if softirqs should be disabled when delivering
> > > > the buffered frames in sta_unblock.
> > > > 
> > > > Using this patch I cannot reproduce the lockup anymore.
> > > > 
> > > > So, is there any special reason this single code path in sta_unblock
> > > > doesn't disable softirqs?
> > > 
> > > This seems right
> > 
> > The patch or the current approach without disable_bh?
> 
> The patch.

Thanks :)

      reply	other threads:[~2012-01-16 19:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-16 15:42 [RFC] mac80211: Fix possible race between sta_unblock and network softirq Helmut Schaa
2012-01-16 16:51 ` Johannes Berg
2012-01-16 19:22   ` Helmut Schaa
2012-01-16 19:25     ` Johannes Berg
2012-01-16 19:32       ` Helmut Schaa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12639684.2oQAdY9LVf@helmutmobil.site \
    --to=helmut.schaa@googlemail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.