From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756371Ab3AWQiq (ORCPT ); Wed, 23 Jan 2013 11:38:46 -0500 Received: from cantor2.suse.de ([195.135.220.15]:55851 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755455Ab3AWQip (ORCPT ); Wed, 23 Jan 2013 11:38:45 -0500 Date: Wed, 23 Jan 2013 17:38:42 +0100 Message-ID: From: Takashi Iwai To: Daniel Vetter Cc: Dave Airlie , Intel Graphics Development , DRI Development , LKML , linux-fbdev-devel@lists.sourceforge.net, Alan Cox , Alan Cox Subject: Re: [PATCH 1/2] fb: Rework locking to fix lock ordering on takeover In-Reply-To: <1358958309-5342-2-git-send-email-daniel.vetter@ffwll.ch> References: <1358958309-5342-1-git-send-email-daniel.vetter@ffwll.ch> <1358958309-5342-2-git-send-email-daniel.vetter@ffwll.ch> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.2 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Wed, 23 Jan 2013 17:25:08 +0100, Daniel Vetter wrote: > > From: Alan Cox > > Adjust the console layer to allow a take over call where the caller already > holds the locks. Make the fb layer lock in order. > > This s partly a band aid, the fb layer is terminally confused about the > locking rules it uses for its notifiers it seems. > > Signed-off-by: Alan Cox > [danvet: Tiny whitespace cleanup.] > Reported-and-tested-by: Hugh Dickins > Reported-and-tested-by: Sasha Levin > References: https://lkml.org/lkml/2012/10/25/516 > Signed-off-by: Daniel Vetter FYI, the latest patch of this is found in mm tree: http://ozlabs.org/~akpm/mmots/broken-out/fb-rework-locking-to-fix-lock-ordering-on-takeover.patch Also I hit the same problem in another code paths (for unbind and unregister): http://marc.info/?t=135309396400003&r=1&w=2 My additional patch is found in mm tree, too: http://ozlabs.org/~akpm/mmots/broken-out/fb-yet-another-band-aid-for-fixing-lockdep-mess.patch Takashi