mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: petkovbb@gmail.com, Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-kernel@vger.kernel.org,
	Peter Zijlstra <a.p.zijlstra@chello.nl>
Subject: Re: [lockdep warning] INFO: inconsistent lock state, serial8250_interrupt(), &port_lock_key
Date: Thu, 24 Jul 2008 11:41:54 +0200	[thread overview]
Message-ID: <20080724094154.GA20128@elte.hu> (raw)
In-Reply-To: <20080724071210.GA2738@gollum.tnic>


* Borislav Petkov <petkovbb@googlemail.com> wrote:

> On Thu, Jul 24, 2008 at 08:53:29AM +0200, Borislav Petkov wrote:
> > On Wed, Jul 23, 2008 at 11:36:04AM +0200, Ingo Molnar wrote:
> > > 
> > > * Ingo Molnar <mingo@elte.hu> wrote:
> > > 
> > > > =================================
> > > > [ INFO: inconsistent lock state ]
> > > > 2.6.26-tip-06509-gb4ebc67-dirty #13600
> > > > ---------------------------------
> > > 
> > > the upstream component of that is: v2.6.26-6077-gc010b2f
> > > 
> > > i.e. my suspicion is that this got introduced via the recent tty 
> > > changes.
> > 
> > Hi,
> > 
> > i hit the same warning here. How about the following fix (this is at least what
> > i think happens):
> > --
> > 
> > serial8250_startup() might unconditionally enable irqs after releasing
> > &up->port.lock while we're still servicing an interrupt.
> 
> Actually, this explanation is not correct - it should be more like:
> 
> serial8250_startup() doesn't disable interrupts while taking the 
> &up->port.lock which might race against the interrupt handler 
> serial8250_interrupt(), which when entered, will deadlock waiting for 
> the lock to be released.

thanks Borislav, your patch seems to have done the trick.

Tested-by: Ingo Molnar <mingo@elte.hu>

	Ingo

      reply	other threads:[~2008-07-24  9:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23  9:33 Ingo Molnar
2008-07-23  9:36 ` Ingo Molnar
2008-07-24  6:53   ` Borislav Petkov
2008-07-24  7:12     ` Borislav Petkov
2008-07-24  9:41       ` Ingo Molnar [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=20080724094154.GA20128@elte.hu \
    --to=mingo@elte.hu \
    --cc=a.p.zijlstra@chello.nl \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petkovbb@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

Powered by JetHome