From: Andrew Morton <akpm@osdl.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: arjan@linux.intel.com, pauldrynoff@gmail.com,
linux-kernel@vger.kernel.org
Subject: Re: 2.6.17-rc5-mm1 - output of lock validator
Date: Wed, 31 May 2006 14:11:39 -0700 [thread overview]
Message-ID: <20060531141139.2fd32a69.akpm@osdl.org> (raw)
In-Reply-To: <20060531194437.GA31121@elte.hu>
Ingo Molnar <mingo@elte.hu> wrote:
>
>
> * Andrew Morton <akpm@osdl.org> wrote:
>
> > On Wed, 31 May 2006 16:28:59 +0200
> > Arjan van de Ven <arjan@linux.intel.com> wrote:
> >
> > > --- linux-2.6.17-rc5-mm1.5.orig/drivers/net/8390.c
> > > +++ linux-2.6.17-rc5-mm1.5/drivers/net/8390.c
> > > @@ -299,7 +299,7 @@ static int ei_start_xmit(struct sk_buff
> > >
> > > disable_irq_nosync(dev->irq);
> > >
> > > - spin_lock(&ei_local->page_lock);
> > > + spin_lock_irqsave(&ei_local->page_lock, flags);
> >
> > Again, notabug - we did disable_irq().
> >
> > I think lockdep needs to be taught about this idiom. Perhaps add a
> > new disable_irq_tell_lockdep() which assumes that we're in an
> > equivalent-to-local_irq_disable() state.
>
> agreed. I'll cook up an API for that. The best would be to disable local
> irqs if LOCKDEP is enabled - i.e. how about disable_irq_lockdep() that
> maps to disable_irq() if !LOCKDEP and on LOCKDEP it also disables local
> interrupts? Likewise there would be an enable_irq_lockdep() which would
> re-enable local irqs.
>
That would probably work - we'd have to watch out for people doing
schedule() inside disable_irq_lockdep().
next prev parent reply other threads:[~2006-05-31 21:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-30 15:54 2.6.17-rc5-mm1 - doesn't boot Paul Drynoff
2006-05-30 20:25 ` Andrew Morton
2006-05-31 14:19 ` 2.6.17-rc5-mm1 - output of lock validator Paul Drynoff
2006-05-31 14:28 ` Arjan van de Ven
2006-05-31 16:38 ` Paul Drynoff
2006-05-31 23:16 ` Ingo Molnar
2006-05-31 17:21 ` Andrew Morton
2006-05-31 19:44 ` Ingo Molnar
2006-05-31 21:11 ` Andrew Morton [this message]
2006-05-31 20:35 ` Arjan van de Ven
2006-05-31 21:25 ` Andrew Morton
2006-05-31 21:24 ` Arjan van de Ven
2006-06-01 8:09 ` Herbert Xu
2006-06-01 8:12 ` Arjan van de Ven
2006-06-01 8:33 ` Ingo Molnar
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=20060531141139.2fd32a69.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=arjan@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=pauldrynoff@gmail.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
all inboxes | Powered by JetHome®