From: Ivo van Doorn <ivdoorn@gmail.com>
To: Michael Wu <flamingice@sourmilk.net>
Cc: Johannes Berg <johannes@sipsolutions.net>,
netdev <netdev@vger.kernel.org>, Jiri Benc <jbenc@suse.cz>
Subject: Re: lockdep rt2500usb report
Date: Sun, 27 Aug 2006 09:17:15 +0200 [thread overview]
Message-ID: <200608270917.16363.IvDoorn@gmail.com> (raw)
In-Reply-To: <200608262214.26827.flamingice@sourmilk.net>
On Sunday 27 August 2006 07:14, Michael Wu wrote:
> On Friday 11 August 2006 01:34, Johannes Berg wrote:
> > This is running wireless-dev from yesterday. All I did was plug in a
> > rt2500usb device into a usb port on a freshly booted system. I have a
> > feeling that this is could be one of the problems reported earlier with
> > the d80211 stack, but I haven't mastered the art of picking through
> > these traces yet... What's swapper doing in there?
> >
> Ok, so it looks like dev_activate (called by dev_open) grabs queue_lock, then
> calls another function (dev_watchdog_up) which grabs xmit_lock. However, at
> that point, the device is up enough that someone who wants to try
> transmitting, can transmit (I think). If they're unlucky enough to transmit
> after the queue_lock is grabbed but before xmit_lock, we get a deadlock.
>
> This seems avoidable either by setting carrier_off before calling dev_open,
> and turning it back on at a safe point (on association?), or simply refusing
> to transmit until it is reasonable to do so. (a similar thing was done in
> adm8211: call netif_stop_queue and return 1 if we're not ready to tx yet in
> order to hold skbs until association, where netif_wake_queue would be
> called.)
But in the end this is something that should be fixed in the stack right?
rt2x00 indeed seems to miss the ieee80211_netif_oper() commands,
I'll add them immediately.
Thanks.
Ivo
next prev parent reply other threads:[~2006-08-27 7:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-11 8:34 lockdep rt2500usb report Johannes Berg
2006-08-11 17:43 ` Ivo van Doorn
2006-08-26 9:26 ` Ivo van Doorn
2006-08-27 5:14 ` Michael Wu
2006-08-27 7:17 ` Ivo van Doorn [this message]
2006-08-27 8:10 ` Michael Wu
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=200608270917.16363.IvDoorn@gmail.com \
--to=ivdoorn@gmail.com \
--cc=flamingice@sourmilk.net \
--cc=jbenc@suse.cz \
--cc=johannes@sipsolutions.net \
--cc=netdev@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).