linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ivo van Doorn <ivdoorn@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Andrew Price <andy@andrewprice.me.uk>, linux-wireless@vger.kernel.org
Subject: Re: BUG: scheduling while atomic (2.6.26-rc3...)
Date: Fri, 23 May 2008 16:28:39 +0200	[thread overview]
Message-ID: <200805231628.39152.IvDoorn@gmail.com> (raw)
In-Reply-To: <1211533873.18247.0.camel@johannes.berg>

On Friday 23 May 2008, Johannes Berg wrote:
> On Fri, 2008-05-23 at 03:05 +0100, Andrew Price wrote:
> > Hi,
> > 
> > I'm seeing this bug when I boot but unfortunately the messages don't
> > seem to get logged and the system locks so I took a photo of as much as
> > could fit on my laptop's screen:
> > http://sucs.org/~welshbyte/wirelesstraces.jpg (sorry about the bad quality).
> > 
> > Anyway, I've bisected it down to commit
> > 2f561feb386d6adefbad63c59a1fcd298ac6a79c "mac80211: Add RTNL version of
> > ieee80211_iterate_active_interfaces"
> > 
> > lspci says I'm using a:
> > 
> > 02:00.0 Network controller: RaLink RT2500 802.11g Cardbus/mini-PCI (rev 01)
> 
> Looks like rt2x00 actually needs both versions of the function.

Johannes: Thanks for the tip, I seriously overlooked that the rtnl version
grabs a mutex in interrupt context. :)

Andew: Could you try below patch to see if that works?

---
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index 5645140..669d942 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -481,9 +481,9 @@ void rt2x00lib_beacondone(struct rt2x00_dev *rt2x00dev)
 	if (!test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags))
 		return;
 
-	ieee80211_iterate_active_interfaces(rt2x00dev->hw,
-					    rt2x00lib_beacondone_iter,
-					    rt2x00dev);
+	ieee80211_iterate_active_interfaces_atomic(rt2x00dev->hw,
+						   rt2x00lib_beacondone_iter,
+						   rt2x00dev);
 
 	queue_work(rt2x00dev->hw->workqueue, &rt2x00dev->intf_work);
 }


  reply	other threads:[~2008-05-23 14:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-23  2:05 BUG: scheduling while atomic (2.6.26-rc3...) Andrew Price
2008-05-23  9:11 ` Johannes Berg
2008-05-23 14:28   ` Ivo van Doorn [this message]
2008-05-23 15:23     ` Andrew Price
2008-05-23 16:06       ` Ivo van Doorn

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=200805231628.39152.IvDoorn@gmail.com \
    --to=ivdoorn@gmail.com \
    --cc=andy@andrewprice.me.uk \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).