From: Luciano Coelho <coelho@ti.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: duaneg@dghda.com, linux-wireless@vger.kernel.org
Subject: Re: rfkill deadlock
Date: Mon, 06 Jun 2011 09:23:54 +0300 [thread overview]
Message-ID: <1307341434.23002.382.camel@cumari> (raw)
In-Reply-To: <1307134727.3800.12.camel@jlt3.sipsolutions.net>
On Fri, 2011-06-03 at 22:58 +0200, Johannes Berg wrote:
> On Fri, 2011-06-03 at 17:00 +0100, duaneg@dghda.com wrote:
> > Hi there,
> >
> > I'm getting a deadlock with 3.0.0-rc1:
> >
> > Jun 3 12:06:20 kereru kernel: =======================================================
> > Jun 3 12:06:20 kereru kernel: [ INFO: possible circular locking dependency detected ]
> > Jun 3 12:06:20 kereru kernel: 3.0.0-rc1-00049-g1fa7b6a #57
> > Jun 3 12:06:20 kereru kernel: -------------------------------------------------------
> > Jun 3 12:06:20 kereru kernel: kworker/0:1/4525 is trying to acquire lock:
> > Jun 3 12:06:20 kereru kernel: (&rdev->mtx){+.+.+.}, at: [<ffffffff8164c831>] cfg80211_netdev_notifier_call+0x131/0x5b0
> > Jun 3 12:06:20 kereru kernel:
> > Jun 3 12:06:20 kereru kernel: but task is already holding lock:
> > Jun 3 12:06:20 kereru kernel: (&rdev->devlist_mtx){+.+.+.}, at: [<ffffffff8164dcef>] cfg80211_rfkill_set_block+0x4f/0xa0
> > Jun 3 12:06:20 kereru kernel:
> > Jun 3 12:06:20 kereru kernel: which lock already depends on the new lock.
>
> This is caused by Luca's scheduled scan changes. The reason is that
> cfg80211_rfkill_set_block holds devlist_mtx, but then he added
> cfg80211_lock_rdev(rdev); to NETDEV_GOING_DOWN, which is of course
> invoked by dev_close() in cfg80211_rfkill_set_block(). Thus, the
> problem. Not sure what to do to solve it, I'll let him sort it out :)
Argh! Well, I guess I have to look into how to solve this. :\
--
Cheers,
Luca.
prev parent reply other threads:[~2011-06-06 6:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-03 16:00 rfkill deadlock duaneg
2011-06-03 20:58 ` Johannes Berg
2011-06-06 6:23 ` Luciano Coelho [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=1307341434.23002.382.camel@cumari \
--to=coelho@ti.com \
--cc=duaneg@dghda.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox