Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752603Ab0BHUuY (ORCPT ); Mon, 8 Feb 2010 15:50:24 -0500 Received: from mail-fx0-f215.google.com ([209.85.220.215]:59266 "EHLO mail-fx0-f215.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752473Ab0BHUuU (ORCPT ); Mon, 8 Feb 2010 15:50:20 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=eJKRTPGnBaILlq5wc2PZ+gEt6xFsfPnPhNSNMR9fWdJEV7dzvvQ6E11Aq3zgiPqFm8 WsUneGvAHeXYCoj6TbrffiJ/W1/c0eaX3IZk9nslGFVtZaqFwQsnT6wPMpwaBX177TC3 N1vVQJt7w0bbccllKIrpbehtMRZdqCsuXqtSc= Message-ID: <4B707904.4030102@lwfinger.net> Date: Mon, 08 Feb 2010 14:50:12 -0600 From: Larry Finger User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100111 SUSE/3.0.1-1.1 Thunderbird/3.0.1 MIME-Version: 1.0 To: Amerigo Wang 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> In-Reply-To: <20100208095530.3612.7843.sendpatchset@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2423 Lines: 56 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. Larry -- 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/