mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@linux.intel.com>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Jiri Slaby <jslaby@suse.cz>,
	linux-kernel@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: tty: AB-BA between tty->legacy_mutex and devpts_mutex
Date: Mon, 28 May 2012 20:50:02 +0100	[thread overview]
Message-ID: <20120528205002.17609388@bob.linux.org.uk> (raw)
In-Reply-To: <alpine.LNX.2.00.1205282100390.15057@pobox.suse.cz>

On Mon, 28 May 2012 21:02:15 +0200 (CEST)
Jiri Kosina <jkosina@suse.cz> wrote:

> On Mon, 28 May 2012, Jiri Kosina wrote:
> 
> > ======================================================
> > [ INFO: possible circular locking dependency detected ]
> > 3.4.0-08219-g238d69d #11 Not tainted
> > -------------------------------------------------------
> > blogd/265 is trying to acquire lock:
> >  (devpts_mutex){+.+.+.}, at: [<ffffffff8134d696>]
> > pty_close+0x166/0x190
> > 
> > but task is already holding lock:
> >  (&tty->legacy_mutex){+.+.+.}, at: [<ffffffff8150f632>]
> > tty_lock+0x22/0x29
> > 
> > which lock already depends on the new lock.
> 
> [ ... snip ... ]
> 
> > This deadlock scenario doesn't really seem realistic, as it's
> > between open()/close(). Not being really familiar with tty layer, I
> > am not sure what the proper lock ordering in this case is, I am
> > just reporting for you guys to decide how to get rid of this one.
> 
> This seems to have been caused by
> 
> commit d739e65bb21d34f0f5d3bf4048410e534fbec148
> Author: Alan Cox <alan@linux.intel.com>
> Date:   Thu May 3 22:22:09 2012 +0100
> 
>     pty: Lock the devpts bits privately

Already fixed. It turned out we could just get rid of the lock there
anyway

      reply	other threads:[~2012-05-28 19:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-28 18:47 Jiri Kosina
2012-05-28 19:02 ` Jiri Kosina
2012-05-28 19:50   ` Alan Cox [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=20120528205002.17609388@bob.linux.org.uk \
    --to=alan@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jkosina@suse.cz \
    --cc=jslaby@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    /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