Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758683AbYAPEmA (ORCPT ); Tue, 15 Jan 2008 23:42:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754436AbYAPElw (ORCPT ); Tue, 15 Jan 2008 23:41:52 -0500 Received: from nz-out-0506.google.com ([64.233.162.234]:3404 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753473AbYAPElv (ORCPT ); Tue, 15 Jan 2008 23:41:51 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LuTreOBXWMtc722s3NyLlDdHB93ra16xZmDoVzblqKXZLisFZlK5XFBHQe+MgSg4jHui1p0ORHunyWI9i38Nwyq+dOoOhJ0AmJJeWfR7lhLuGyTEltH4IUmTA6mYTND4INIhCJjAtjuWUIHe/A0j99fGzdhZAUt/CmNmkAl2EJQ= Message-ID: Date: Wed, 16 Jan 2008 12:41:50 +0800 From: "Dave Young" To: "Johannes Berg" Subject: Re: [PATCH for 2.6.24] fix workqueue creation API lockdep interaction Cc: "Peter Zijlstra" , "Linus Torvalds" , "Linux Kernel Mailing List" , "Ingo Molnar" , "Oleg Nesterov" In-Reply-To: <1200402272.5887.140.camel@johannes.berg> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1200302644.7415.6.camel@twins> <1200306902.5887.39.camel@johannes.berg> <1200307288.7415.11.camel@twins> <1200307896.5887.42.camel@johannes.berg> <1200393685.5887.113.camel@johannes.berg> <1200399661.26045.13.camel@twins> <1200400787.5887.129.camel@johannes.berg> <1200401245.26045.19.camel@twins> <1200402272.5887.140.camel@johannes.berg> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1248 Lines: 30 On Jan 15, 2008 9:04 PM, Johannes Berg wrote: > Dave Young reported warnings from lockdep that the workqueue API > can sometimes try to register lockdep classes with the same key > but different names. This is not permitted in lockdep. > > Unfortunately, I was unaware of that restriction when I wrote > the code to debug workqueue problems with lockdep and used the > workqueue name as the lockdep class name. This can obviously > lead to the problem if the workqueue name is dynamic. > > This patch solves the problem by always using a constant name > for the workqueue's lockdep class, namely either the constant > name that was passed in or a string consisting of the variable > name. > > Signed-off-by: Johannes Berg > --- > Please be careful with this patch, I haven't been able to test it so far > because my powerbook doesn't have lockdep. Hi, Just for confirm, the warnings didn't trigger after applied your patch, thanks. Regards dave -- 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/