From: Stanislaw Gruszka <sgruszka@redhat.com>
To: Dan Williams <dcbw@redhat.com>
Cc: "John W. Linville" <linville@tuxdriver.com>,
linux-wireless@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Maciej Rutecki <maciej.rutecki@gmail.com>,
Michael Witten <mfwitten@gmail.com>,
Witold Baryluk <baryluk@smp.if.uj.edu.pl>
Subject: Re: [PATCH] ipw2x00: fix rtnl mutex deadlock
Date: Thu, 15 Sep 2011 09:42:50 +0200 [thread overview]
Message-ID: <20110915074249.GA2262@redhat.com> (raw)
In-Reply-To: <1316020961.3506.4.camel@dcbw.foobar.com>
On Wed, Sep 14, 2011 at 12:22:40PM -0500, Dan Williams wrote:
> On Wed, 2011-09-14 at 16:47 +0200, Stanislaw Gruszka wrote:
> > This fix regression introduced by:
> >
> > commit: ecb4433550f0620f3d1471ae7099037ede30a91e
> > Author: Stanislaw Gruszka <sgruszka@redhat.com>
> > Date: Fri Aug 12 14:00:59 2011 +0200
> >
> > mac80211: fix suspend/resume races with unregister hw
> >
> > Above commit add rtnl_lock() into wiphy_register(), what cause deadlock
> > when initializing ipw2x00 driver, which itself call wiphy_register()
> > from register_netdev() internal callback with rtnl mutex taken.
> >
> > To fix move wiphy_register() outside register_netdev(). This solution
> > have side effect of not creating /sys/class/net/wlanX/phy80211 link,
> > but that's a minor issue we can live with.
>
> Unfortunately that path is one of the ways that programs distinguish
> wifi devices from plain ethernet devices. The other way is to poke it
> with WEXT. Should poking it with nl80211 be added to the mix instead?
Not sure, maybe device/ieee80211/phy0 could be used?
[stasiu@dhcp-27-172 ~]$ readlink -f /sys/class/net/wlan0/phy80211
/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0
[stasiu@dhcp-27-172 ~]$ readlink -f /sys/class/net/wlan0/device/ieee80211/phy0
/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0
> I guess for ipw2x00 it's not an issue since the driver depends on WEXT
> and thus the WEXT method will always work.
Hopefully yes.
Generally this link creation problem is fixable, but requires some more
rumble in ipw2x00 driver, which is old and orphaned, hence I'm reluctant
to modify it in some more way.
Stanislaw
next prev parent reply other threads:[~2011-09-15 8:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-14 14:47 [PATCH] ipw2x00: fix rtnl mutex deadlock Stanislaw Gruszka
2011-09-14 17:22 ` Dan Williams
2011-09-15 7:42 ` Stanislaw Gruszka [this message]
2011-09-15 21:22 ` Witold Baryluk
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=20110915074249.GA2262@redhat.com \
--to=sgruszka@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=baryluk@smp.if.uj.edu.pl \
--cc=dcbw@redhat.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=maciej.rutecki@gmail.com \
--cc=mfwitten@gmail.com \
--cc=rjw@sisk.pl \
/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).