Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752401AbaBGWQQ (ORCPT ); Fri, 7 Feb 2014 17:16:16 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:59564 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751334AbaBGWQO (ORCPT ); Fri, 7 Feb 2014 17:16:14 -0500 Date: Fri, 7 Feb 2014 14:17:24 -0800 From: Greg Kroah-Hartman To: Tejun Heo Cc: Imre Deak , Borislav Petkov , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kernfs: skip lockdep annotation always if ignore_lockdep is set Message-ID: <20140207221724.GA28658@kroah.com> References: <1391802421-7829-1-git-send-email-imre.deak@intel.com> <20140207195313.GB8833@htj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140207195313.GB8833@htj.dyndns.org> User-Agent: Mutt/1.5.22 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 07, 2014 at 02:53:13PM -0500, Tejun Heo wrote: > On Fri, Feb 07, 2014 at 09:47:01PM +0200, Imre Deak wrote: > > We skip lockdep annotations for sysfs attributes with ignore_lockdep > > set. An exception is kernfs_deactivate where we annotate even in this > > case. Since the lockdep map key needed for the annotation is not > > initialized whenever ignore_lockdep is set, we'll get a warning for > > the uninitialized key. > > > > Note that this happens since, > > > > commit 517e64f57883bd63c5a4ab8b3d0d3ed68c55d0cf > > Author: Tejun Heo > > Date: Thu Nov 28 14:54:29 2013 -0500 > > > > Before this change we had a valid key even in case of ignore_lockdep, so > > the annotation in kernfs_deactivate worked, or at least didn't produce > > the above warning. Fix this by skipping the annotation whenever > > ignore_lockdep is set. > > > > The actual attribute triggering the bug was 'delete_device' in > > drivers/i2c/i2c-core.c, for the backtrace see the reference below. > > I think Greg already has about the same patch queued. > > http://lkml.kernel.org/g/20140129170403.GJ30842@htj.dyndns.org Yes, I just sent it to Linus a few minutes ago. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/