From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754736Ab2EHSNB (ORCPT ); Tue, 8 May 2012 14:13:01 -0400 Received: from mail-yw0-f46.google.com ([209.85.213.46]:36381 "EHLO mail-yw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753961Ab2EHSM6 (ORCPT ); Tue, 8 May 2012 14:12:58 -0400 MIME-Version: 1.0 In-Reply-To: <4FA838D2.9000908@suse.cz> References: <20120503212151.568.91854.stgit@bob.linux.org.uk> <20120503212219.568.15653.stgit@bob.linux.org.uk> <20120507171126.5beddc27@pyramind.ukuu.org.uk> <1336408208.3638.15.camel@lappy> <20120507174240.4209c5cb@pyramind.ukuu.org.uk> <4FA838D2.9000908@suse.cz> From: Sasha Levin Date: Tue, 8 May 2012 20:12:37 +0200 Message-ID: Subject: Re: [PATCH 3/3] tty_lock: Localise the lock To: Jiri Slaby Cc: Alan Cox , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jiri Slaby Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 7, 2012 at 11:04 PM, Jiri Slaby wrote: > On 05/07/2012 07:00 PM, Sasha Levin wrote: >>> So whatever your trace is showing, that's not the bug. Something more >>> complicated would appear to be afoot. >> >> Oddly enough, tty != tty->link, but the lockdep warning triggers. >> >> Any idea why it might happen? > > I think so, both locks are the same lockdep class. So lockdep thinks it > is the same lock. However this is a false positive. I guess we need > mutex_lock_nested... It looks like it causes an actual deadlock, and hung_tasks screams if left alone for a bit, so it doesn't look like a lockdep issue.