From: Julia Lawall <julia@diku.dk>
To: "Du, Alek" <alek.du@intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>, Andreas Mohr <andi@lisas.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Greg KH <greg@kroah.com>,
"Pan, Jacob jun" <jacob.jun.pan@intel.com>,
Alan Stern <stern@rowland.harvard.edu>
Subject: RE: mcs7830 usb net: "scheduling while atomic" danger?
Date: Tue, 19 Jan 2010 07:25:55 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.64.1001190725050.17802@ask.diku.dk> (raw)
In-Reply-To: <ED3036A092A28F4C91B0B4360DD128EA35987814@shzsmsx502.ccr.corp.intel.com>
So you will fix /var/linuxes/linux-next/drivers/usb/host/ehci-hub.c?
I think it is a bit out of my expertise...
julia
On Tue, 19 Jan 2010, Du, Alek wrote:
> I confirm that thing is bad, I need to prepare another patch to fix that.
>
> Thanks,
> Alek
> >-----Original Message-----
> >From: Arnd Bergmann [mailto:arnd@arndb.de]
> >Sent: Tuesday, January 19, 2010 5:24 AM
> >To: Julia Lawall
> >Cc: Andreas Mohr; linux-kernel@vger.kernel.org; Greg KH; Du, Alek; Pan, Jacob
> >jun; Alan Stern
> >Subject: Re: mcs7830 usb net: "scheduling while atomic" danger?
> >
> >On Monday 18 January 2010, Julia Lawall wrote:
> >> On Mon, 18 Jan 2010, Andreas Mohr wrote:
> >> >
> >> > Forgive me, but doesn't that mutex_lock()/msleep() (ab)use mean
> >> > risking a "scheduling while atomic"?
> >> > (such as discussed in e.g.
> >> > http://search.luky.org/linux-kernel.2004/msg92817.html )
> >> >
> >> >
> >> > And, if that is the case, shouldn't all such cases simply be killed for
> >> > good via a capable semantic patch?
> >>
> >> The semantic match shown below finds 55 matches. All but two involve
> >> mutex_lock. Those are in the file
> >> /var/linuxes/linux-next/drivers/usb/host/ehci-hub.c
> >> in the functions ehci_bus_suspend and ehci_hub_control.
> >
> >That code looks indeed broken as was added las July as part of 331ac6b288d9
> >"USB: EHCI: Add Intel Moorestown EHCI controller HOSTPCx extensions and
> >support phy low power mode". The reason that this hasn't triggered is
> >probably the lack of Moorestown machines in the field.
> >
> > Arnd
>
next prev parent reply other threads:[~2010-01-19 6:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-18 18:49 Andreas Mohr
2010-01-18 20:25 ` Julia Lawall
2010-01-18 20:47 ` Thomas Gleixner
2010-01-18 21:10 ` Julia Lawall
2010-01-18 21:23 ` Arnd Bergmann
2010-01-18 21:35 ` Julia Lawall
2010-01-18 22:25 ` Arnd Bergmann
2010-01-19 8:31 ` [PATCH] ehci: phy low power mode bug fixing alek du
2010-01-19 2:53 ` mcs7830 usb net: "scheduling while atomic" danger? Du, Alek
2010-01-19 6:25 ` Julia Lawall [this message]
2010-01-18 21:24 ` Thomas Gleixner
2010-01-18 21:32 ` Julia Lawall
2010-01-18 21:38 ` Thomas Gleixner
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=Pine.LNX.4.64.1001190725050.17802@ask.diku.dk \
--to=julia@diku.dk \
--cc=alek.du@intel.com \
--cc=andi@lisas.de \
--cc=arnd@arndb.de \
--cc=greg@kroah.com \
--cc=jacob.jun.pan@intel.com \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®