From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756654Ab2I0HTz (ORCPT ); Thu, 27 Sep 2012 03:19:55 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:51399 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756198Ab2I0HTx (ORCPT ); Thu, 27 Sep 2012 03:19:53 -0400 MIME-Version: 1.0 In-Reply-To: <20120927070117.GR15236@dastard> References: <1348404995-14372-1-git-send-email-zwu.kernel@gmail.com> <1348404995-14372-8-git-send-email-zwu.kernel@gmail.com> <20120927040357.GO15236@dastard> <20120927070117.GR15236@dastard> Date: Thu, 27 Sep 2012 15:19:51 +0800 Message-ID: Subject: Re: [RFC v2 07/10] vfs: fork one kthread to update data temperature From: Zhi Yong Wu To: Dave Chinner Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linuxram@linux.vnet.ibm.com, viro@zeniv.linux.org.uk, cmm@us.ibm.com, tytso@mit.edu, marco.stornelli@gmail.com, stroetmann@ontolinux.com, diegocg@gmail.com, chris@csamuel.org, Zhi Yong Wu Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 27, 2012 at 3:01 PM, Dave Chinner wrote: > On Thu, Sep 27, 2012 at 02:54:22PM +0800, Zhi Yong Wu wrote: >> On Thu, Sep 27, 2012 at 12:03 PM, Dave Chinner wrote: >> > On Sun, Sep 23, 2012 at 08:56:32PM +0800, zwu.kernel@gmail.com wrote: >> >> From: Zhi Yong Wu >> >> >> >> Fork and run one kernel kthread to calculate >> >> that temperature based on some metrics kept >> >> in custom frequency data structs, and store >> >> the info in the hash table. >> > >> > No new kthreads, please. Use a per-superblock workqueue and a struct >> > delayed_work to run periodic work on each superblock. >> If no new kthread is created, which kthread will work on these >> delayed_work tasks? > > One of the kworker threads that service the workqueue > infrastructure. Got it, thanks > > Cheers, > > Dave. > -- > Dave Chinner > david@fromorbit.com -- Regards, Zhi Yong Wu