Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933456Ab0LUByU (ORCPT ); Mon, 20 Dec 2010 20:54:20 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:55928 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933407Ab0LUByT (ORCPT ); Mon, 20 Dec 2010 20:54:19 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=JvYL7yH3fenhv+h7hixOFIlZfu7NYoOCJV7f/SPxmxO6EgSWkQH5eJq3D0ScYlaOIN LTWiUbXExjszkK8X5RLE1nFwQm51qJJd8YwDFb556JVnnbvPuOnlQTRVPPH4IxwWV5IT YNNtTut+wymVMNyDWsR4f30xTomVWlgJSwNYI= MIME-Version: 1.0 In-Reply-To: <4D0F8276.9070903@kernel.org> References: <1292762975.2403.29.camel@localhost> <4D0F8276.9070903@kernel.org> Date: Tue, 21 Dec 2010 09:54:18 +0800 Message-ID: Subject: Re: [PATCH] kthread_worker: Initialize dynamically allocated spinlock properly for lockdep From: Yong Zhang To: Tejun Heo Cc: Andy Walls , linux-kernel@vger.kernel.org, nicolas.mailhot@laposte.net, Jarod Wilson , Ingo Molnar , Mauro Carvalho Chehab , Hans Verkuil Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1398 Lines: 44 On Tue, Dec 21, 2010 at 12:21 AM, Tejun Heo wrote: > Hello, > > On 12/20/2010 10:28 AM, Yong Zhang wrote: >> Subject: [PATCH] kthread_work: Make lockdep happy >> >> spinlock in kthread_worker and wait_queue_head in kthread_work >> both should be lockdep annotated. >> So change the interface to make it suiltable for CONFIG_LOCKDEP. >> >> Signed-off-by: Yong Zhang >> --- >> I'm not sure if it's possible to define a worker on stack? >> So I left DEFINE_KTHREAD_WORKER() untouched. > > Yes, it can, I think. Thanks for your confirmation, I will update the patch in V2. >BTW, where are you using kthread_worker? I don't have anything using kthread_worker, but go through the kernel and find ivtv is the only one. This is why I sent the untested patch :) > I'm > planning to update its flush semantics similar to that of proper > workqueue so that it's less confusing and switching between the two is > easy, so its usage may change slightly soon, although conversion > shouldn't be difficult. No problem. Now I just make the patch based on the current kthread_work*. Thanks, Yong -- Only stand for myself. -- 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/