Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752276Ab0DYCgi (ORCPT ); Sat, 24 Apr 2010 22:36:38 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:41971 "EHLO e8.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751599Ab0DYCgg (ORCPT ); Sat, 24 Apr 2010 22:36:36 -0400 Date: Sat, 24 Apr 2010 19:36:33 -0700 From: "Paul E. McKenney" To: Miles Lane Cc: Vivek Goyal , Eric Paris , Lai Jiangshan , Ingo Molnar , Peter Zijlstra , LKML , nauman@google.com, eric.dumazet@gmail.com, netdev@vger.kernel.org, Jens Axboe , Gui Jianfeng , Li Zefan Subject: Re: [PATCH] RCU: don't turn off lockdep when find suspicious rcu_dereference_check() usage Message-ID: <20100425023633.GN2440@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20100420135227.GC2628@linux.vnet.ibm.com> <20100421213543.GO2563@linux.vnet.ibm.com> <20100422145640.GB3228@redhat.com> <20100422160144.GC2524@linux.vnet.ibm.com> <20100423194255.GE2589@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2603 Lines: 52 On Sat, Apr 24, 2010 at 01:35:01AM -0400, Miles Lane wrote: > 2.6.34-rc5-git5 with all of your patches applied. > > I reconfigured my kernel build options and got the following new issue: > > [ 2.686515] [ INFO: suspicious rcu_dereference_check() usage. ] > [ 2.686519] --------------------------------------------------- > [ 2.686523] kernel/cgroup.c:4438 invoked rcu_dereference_check() > without protection! > [ 2.686526] > [ 2.686527] other info that might help us debug this: > [ 2.686529] > [ 2.686532] > [ 2.686533] rcu_scheduler_active = 1, debug_locks = 1 > [ 2.686537] 2 locks held by swapper/1: > [ 2.686540] #0: (mtd_table_mutex){+.+.+.}, at: > [] register_mtd_blktrans+0xa2/0x25e > [ 2.686555] #1: (&(&blkcg->lock)->rlock){......}, at: > [] blkiocg_add_blkio_group+0x29/0x7f > [ 2.686566] > [ 2.686567] stack backtrace: > [ 2.686572] Pid: 1, comm: swapper Not tainted 2.6.34-rc5-git5 #25 > [ 2.686576] Call Trace: > [ 2.686584] [] lockdep_rcu_dereference+0x9d/0xa5 > [ 2.686591] [] css_id+0x3f/0x52 > [ 2.686597] [] blkiocg_add_blkio_group+0x38/0x7f > [ 2.686603] [] cfq_init_queue+0xdf/0x2dc > [ 2.686609] [] elevator_init+0xba/0xf5 > [ 2.686616] [] ? mtd_blktrans_request+0x0/0x1c > [ 2.686623] [] blk_init_queue_node+0x12f/0x135 > [ 2.686629] [] blk_init_queue+0xc/0xe > [ 2.686635] [] register_mtd_blktrans+0x105/0x25e > [ 2.686642] [] ? init_mtdblock+0x0/0x2c > [ 2.686648] [] init_mtdblock+0x2a/0x2c > [ 2.686656] [] do_one_initcall+0x59/0x14e > [ 2.686663] [] kernel_init+0x160/0x1ea > [ 2.686669] [] kernel_thread_helper+0x4/0x10 > [ 2.686677] [] ? restore_args+0x0/0x30 > [ 2.686683] [] ? kernel_init+0x0/0x1ea > [ 2.686688] [] ? kernel_thread_helper+0x0/0x10 > [ 2.687683] mtdoops: mtd device (mtddev=name/number) must be supplied This should be covered by the patch I sent with my previous email. And thank you again, Miles, for all the testing!!! Thanx, Paul -- 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/