Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753485Ab0BICyt (ORCPT ); Mon, 8 Feb 2010 21:54:49 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6669 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751763Ab0BICys (ORCPT ); Mon, 8 Feb 2010 21:54:48 -0500 Message-ID: <4B70CECC.2060205@redhat.com> Date: Tue, 09 Feb 2010 10:56:12 +0800 From: Cong Wang User-Agent: Thunderbird 2.0.0.23 (X11/20091001) MIME-Version: 1.0 To: Larry Finger CC: linux-kernel@vger.kernel.org, Tejun Heo , Greg Kroah-Hartman , Peter Zijlstra , "Eric W. Biederman" , Heiko Carstens , Jens Axboe , Miles Lane , Hugh Dickins , akpm@linux-foundation.org Subject: Re: [Patch 2/2] block: add sysfs lockdep class for iosched References: <20100208095518.3612.73574.sendpatchset@localhost.localdomain> <20100208095530.3612.7843.sendpatchset@localhost.localdomain> <4B707904.4030102@lwfinger.net> In-Reply-To: <4B707904.4030102@lwfinger.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2648 Lines: 61 Larry Finger wrote: > On 02/08/2010 03:52 AM, Amerigo Wang wrote: >> Similar to the previous PM case, in iosched, we hold an s_active >> lock to store "scheduler", meanwhile we want to remove "iosched/*" >> files. >> >> This patch depends on the previous one. I tested it on my machine, >> it fixes the problem. >> >> Reported-by: Hugh Dickins >> Signed-off-by: WANG Cong >> Cc: Jens Axboe > > After applying the 2 patches to 2.6.33-rc7, I get the following: > > ACPI: bus type pci registered > PCI: MMCONFIG for domain 0000 [bus 00-09] at [mem 0xe0000000-0xe09fffff] (base > 0xe0000000) > PCI: MMCONFIG at [mem 0xe0000000-0xe09fffff] reserved in E820 > PCI: Using configuration type 1 for base access > INFO: trying to register non-static key. > the code is fine but needs lockdep annotation. > turning off the locking correctness validator. > Pid: 1, comm: swapper Not tainted 2.6.33-rc7-Linus-00010-g6339204-dirty #181 > Call Trace: > [] __lock_acquire+0xf86/0x1d30 > [] ? lockdep_init_map+0x5f/0x5d0 > [] lock_acquire+0x9b/0x120 > [] ? sysfs_addrm_finish+0x43/0x70 > [] sysfs_deactivate+0xc3/0x110 > [] ? sysfs_addrm_finish+0x43/0x70 > [] ? mutex_lock_nested+0x243/0x300 > [] sysfs_addrm_finish+0x43/0x70 > [] remove_dir+0x36/0x40 > [] sysfs_remove_subdir+0x9/0x10 > [] sysfs_remove_group+0x66/0xf0 > [] param_sysfs_init+0x102/0x277 > [] ? sysdev_create_file+0xd/0x10 > [] ? register_cpu+0xa3/0xa5 > [] ? param_sysfs_init+0x0/0x277 > [] do_one_initcall+0x37/0x190 > [] kernel_init+0x14f/0x1a5 > [] kernel_thread_helper+0x4/0x10 > [] ? restore_args+0x0/0x30 > [] ? kernel_init+0x0/0x1a5 > [] ? kernel_thread_helper+0x0/0x10 > > This dump does not occur with standard 2.6.33-rc7. As the above turns off the > locking correctness validator, I cannot really test to see what happens when > suspending. > Ouch! I forgot to add the annotations to sysfs dirs... Thanks much for the report, I will send an updated version soon! -- 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/