From: David Miller <davem@davemloft.net>
To: greg@kroah.com
Cc: jacliburn@bellsouth.net, jcliburn@gmail.com, nm127@freemail.hu,
netdev@vger.kernel.org, jie.yang@atheros.com, jgarzik@redhat.com,
willy@linux.intel.com, akpm@linux-foundation.org,
csnook@redhat.com, stable@kernel.org
Subject: Re: [stable] [PATCH] [stable 2.6.27.y] don't take the mdio_lock in atl1e_probe
Date: Wed, 15 Oct 2008 15:41:45 -0700 (PDT) [thread overview]
Message-ID: <20081015.154145.167089180.davem@davemloft.net> (raw)
In-Reply-To: <20081015221537.GA22555@kroah.com>
From: Greg KH <greg@kroah.com>
Date: Wed, 15 Oct 2008 15:15:37 -0700
> On Sat, Oct 11, 2008 at 11:08:16AM -0700, David Miller wrote:
> > From: Jay Cliburn <jacliburn@bellsouth.net>
> > Date: Sat, 11 Oct 2008 10:05:01 -0500
> >
> > > From: Matthew Wilcox <matthew@wil.cx>
> > >
> > > Upstream commit: f382a0a8e9403c6d7f8b2cfa21e41fefb5d0c9bd
> > >
> > > This fixes bug 11736.
> > >
> > > http://marc.info/?l=linux-netdev&m=122367387219316&w=2
> > >
> > > Lockdep warns about the mdio_lock taken with interrupts enabled then
> > > later taken from interrupt context. Initially, I considered changing
> > > these to spin_lock_irq/spin_unlock_irq, but then I looked at
> > > atl1e_phy_init() and saw that it calls msleep(). Sleeping while
> > > holding a spinlock is not allowed either.
> > >
> > > In the probe path, we haven't registered the interrupt handler, so
> > > it can't poke at this card yet. It's before we call register_netdev(),
> > > so I don't think any other threads can reach this card either. If I'm
> > > right, we don't need a spinlock at all.
> > >
> > > Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
> > > Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
> >
> > Signed-off-by: David S. Miller <davem@davemloft.net>
>
> Does this mean you will forward this to -stable in a bunch of network
> patches? Or should I take it now?
Please take this one now, t hanks.
next prev parent reply other threads:[~2008-10-15 22:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-11 15:05 [PATCH] [stable 2.6.27.y] don't take the mdio_lock in atl1e_probe Jay Cliburn
2008-10-11 18:08 ` David Miller
2008-10-15 22:15 ` [stable] " Greg KH
2008-10-15 22:41 ` David Miller [this message]
2008-10-15 22:47 ` Greg KH
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=20081015.154145.167089180.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=akpm@linux-foundation.org \
--cc=csnook@redhat.com \
--cc=greg@kroah.com \
--cc=jacliburn@bellsouth.net \
--cc=jcliburn@gmail.com \
--cc=jgarzik@redhat.com \
--cc=jie.yang@atheros.com \
--cc=netdev@vger.kernel.org \
--cc=nm127@freemail.hu \
--cc=stable@kernel.org \
--cc=willy@linux.intel.com \
/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).