From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Minchan Kim <minchan.kim@gmail.com>,
linux kernel mailing list <linux-kernel@vger.kernel.org>,
"Greg Kroah-Hartman" <gregkh@suse.de>,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [BUG] usb_set_device_state
Date: Sun, 6 Feb 2011 13:01:55 +0100 [thread overview]
Message-ID: <201102061301.56097.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1102052211040.9798-100000@netrider.rowland.org>
On Sunday, February 06, 2011, Alan Stern wrote:
> On Sun, 6 Feb 2011, Rafael J. Wysocki wrote:
>
> > On Saturday, February 05, 2011, Alan Stern wrote:
> > > On Sun, 6 Feb 2011, Minchan Kim wrote:
> > >
> > > > I got following message during booting mmotm-02-04.
> ...
> > > > It seems usb_set_device_state disable irq by spin_lock_irqsave.
> > > > But it calls device_set_wakeup_capable which ends up calling sysfs_merge_group.
> > > > It calls mutex_lock. :(
> > > >
> > > > Is it already known BUG?
> > >
> > > No, it was newly introduced by changes to the
> > > device_set_wakeup_capable() routine. Rafael, this sort of problem may
> > > occur in other places too, since previously there was no requirement
> > > that device_set_wakeup_capable() be called in process context.
> >
> > I'm aware of that, but it's only happend in a handful of network drivers so far.
> >
> > I think this is a new case in -mm, though, isn't it?
>
> I'm not sure. The USB core does call device_set_wakeup_capable()
> while holding one or more spinlocks in usb_set_device_state(), and that
> routine is called in several places. You ought to be able to duplicate
> the error on your own system simply by plugging in a USB hub.
No, I'm not. At least not with 2.6.37.
Also, I think the problem would have been reported before if it had been that
easy to reproduce with the mainline kernel.
Rafael
next prev parent reply other threads:[~2011-02-06 12:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-05 17:15 [BUG] usb_set_device_state Minchan Kim
2011-02-05 18:25 ` Greg KH
2011-02-06 13:02 ` Minchan Kim
2011-02-05 20:11 ` Alan Stern
2011-02-05 23:06 ` Rafael J. Wysocki
2011-02-06 3:19 ` Alan Stern
2011-02-06 12:01 ` Rafael J. Wysocki [this message]
2011-02-06 12:03 ` Rafael J. Wysocki
2011-02-06 12:53 ` Minchan Kim
2011-02-06 13:01 ` Minchan Kim
2011-02-06 13:08 ` Rafael J. Wysocki
2011-02-06 15:23 ` Alan Stern
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=201102061301.56097.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=akpm@linux-foundation.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=minchan.kim@gmail.com \
--cc=stern@rowland.harvard.edu \
/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