Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758011Ab0FBNFB (ORCPT ); Wed, 2 Jun 2010 09:05:01 -0400 Received: from 0122700014.0.fullrate.dk ([95.166.99.235]:56203 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757936Ab0FBNFA (ORCPT ); Wed, 2 Jun 2010 09:05:00 -0400 Date: Wed, 2 Jun 2010 15:04:56 +0200 From: Jens Axboe To: Ingo Molnar Cc: Peter Zijlstra , piotr@hosowicz.com, linux-kernel@vger.kernel.org, Divyesh Shah Subject: Re: blkiocg_update_io_add_stats(): INFO: trying to register non-static key Message-ID: <20100602130456.GP3564@kernel.dk> References: <4BF9EC69.5030709@example.com> <1274777422.5882.591.camel@twins> <20100601064120.GA3407@elte.hu> <20100601064726.GG1660@kernel.dk> <20100601065500.GA7876@elte.hu> <20100602111653.GA25662@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100602111653.GA25662@elte.hu> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1423 Lines: 33 On Wed, Jun 02 2010, Ingo Molnar wrote: > > btw., there's another warning triggered by the new blk-cgroups stats code: > > sda:INFO: trying to register non-static key. > the code is fine but needs lockdep annotation. > turning off the locking correctness validator. > Pid: 81, comm: async/2 Not tainted 2.6.35-rc1-tip-01073-gd2f7698-dirty #6765 > Call Trace: > [] register_lock_class+0x15f/0x365 > [] ? sched_clock_local+0x1d/0x83 > [] ? sched_clock_cpu+0xcb/0xd9 > [] __lock_acquire+0x97/0x481 > [] ? native_sched_clock+0x37/0x6d > [] ? blkiocg_update_io_add_stats+0x32/0x12e > [] lock_acquire+0xd6/0xfd > [] ? blkiocg_update_io_add_stats+0x32/0x12e > [] _raw_spin_lock_irqsave+0x47/0x82 > [] ? blkiocg_update_io_add_stats+0x32/0x12e > [] blkiocg_update_io_add_stats+0x32/0x12e So that's blkg->stats_lock - help me out, what is lockdep complaining about? The lock is initialized, what kind of lockdep annotation magic do we need to sprinkle on it? -- Jens Axboe -- 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/