Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760031Ab0FKBdg (ORCPT ); Thu, 10 Jun 2010 21:33:36 -0400 Received: from smtp-out.google.com ([216.239.44.51]:34225 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759990Ab0FKBdf convert rfc822-to-8bit (ORCPT ); Thu, 10 Jun 2010 21:33:35 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:from:date:message-id: subject:to:cc:content-type:content-transfer-encoding; b=klrdhajiG+8n9o4+AKYF7+BsqzEk0gYi2p1ICSE42R9e1lHhcOhSSGUnxPjvBYB+q 7hVb1+tdTpb3WepvqZ5Fg== MIME-Version: 1.0 In-Reply-To: <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> <20100602130456.GP3564@kernel.dk> From: Divyesh Shah Date: Thu, 10 Jun 2010 18:33:08 -0700 Message-ID: Subject: Re: blkiocg_update_io_add_stats(): INFO: trying to register non-static key To: Jens Axboe Cc: Ingo Molnar , Peter Zijlstra , piotr@hosowicz.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1819 Lines: 44 On Wed, Jun 2, 2010 at 6:04 AM, Jens Axboe wrote: > 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, Were you able to figure out what annotation magic is needed here. I remember we had fixed another similar warning that Gui reported, but that was because the root cfqg didn't have the stats_lock initialized as expected. I'm not sure what needs to be done here either. -Divyesh > > -- > 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/