Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Michael Buesch <mb@bu3sch.de>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	Felix Fietkau <nbd@openwrt.org>,
	Ben Greear <greearb@candelatech.com>
Subject: Re: WARN_ON in ieee80211_scan_completed_finish triggered
Date: Mon, 07 Mar 2011 15:30:11 +0100	[thread overview]
Message-ID: <1299508211.6739.3.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <20110307142241.GB9571@redhat.com>

On Mon, 2011-03-07 at 15:22 +0100, Stanislaw Gruszka wrote:
> On Mon, Mar 07, 2011 at 02:14:53PM +0100, Johannes Berg wrote:
> >  	on_oper_chan = ieee80211_cfg_on_oper_channel(local);
> >  
> >  	WARN_ON(local->scanning & (SCAN_SW_SCANNING | SCAN_HW_SCANNING));

> Not needed, just zeroed local->scanning.

Yeah, I realised that a few minutes ago too, thanks.

> > @@ -332,7 +321,6 @@ static void __ieee80211_scan_completed_f
> >  	}
> >  
> >  	ieee80211_recalc_idle(local);
> > -	mutex_unlock(&local->mtx);
> >  
> >  	ieee80211_mlme_notify_scan_completed(local);
> >  	ieee80211_ibss_notify_scan_completed(local);
> I'm a bit worried about calling these with mutex.

Yeah so was I, but I audited them and they should be fine. mesh and mlme
only do some rcu-based list iteration and start timers/workqueue items,
and ibss does the same but grabs local->iflist_mtx -- however we don't
hold that here and it's always taken after local->mtx. Thus it should be
ok, right?

johannes


      reply	other threads:[~2011-03-07 14:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-06 20:25 WARN_ON in ieee80211_scan_completed_finish triggered Michael Buesch
2011-03-07  9:51 ` Johannes Berg
2011-03-07 11:42   ` Michael Buesch
2011-03-07 11:44     ` Johannes Berg
2011-03-07 12:03     ` Johannes Berg
2011-03-07 13:14       ` Johannes Berg
2011-03-07 13:59         ` Michael Buesch
2011-03-07 14:22         ` Stanislaw Gruszka
2011-03-07 14:30           ` Johannes Berg [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=1299508211.6739.3.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=greearb@candelatech.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mb@bu3sch.de \
    --cc=nbd@openwrt.org \
    --cc=sgruszka@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox