Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932804Ab2JCXLQ (ORCPT ); Wed, 3 Oct 2012 19:11:16 -0400 Received: from mail-da0-f46.google.com ([209.85.210.46]:47744 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932647Ab2JCXLN (ORCPT ); Wed, 3 Oct 2012 19:11:13 -0400 Message-ID: <506CC607.8060703@gmail.com> Date: Thu, 04 Oct 2012 07:11:03 +0800 From: Ni zhan Chen User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Fengguang Wu CC: "Srivatsa S. Bhat" , Borislav Petkov , Conny Seidel , Jan Kara , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Andrew Morton , Johannes Weiner , "Paul E. McKenney" , Thomas Gleixner Subject: Re: [PATCH] CPU hotplug, writeback: Don't call writeback_set_ratelimit() too often during hotplug References: <20120924102324.GA22303@aftab.osrc.amd.com> <20120924142305.GD12264@quack.suse.cz> <20120924143609.GH22303@aftab.osrc.amd.com> <20120924201650.6574af64.conny.seidel@amd.com> <20120924181927.GA25762@aftab.osrc.amd.com> <5060AB0E.3070809@linux.vnet.ibm.com> <5060C714.8030606@linux.vnet.ibm.com> <20120928122719.GA3067@localhost> In-Reply-To: <20120928122719.GA3067@localhost> 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: 1292 Lines: 38 On 09/28/2012 08:27 PM, Fengguang Wu wrote: > On Tue, Sep 25, 2012 at 02:18:20AM +0530, Srivatsa S. Bhat wrote: >> From: Srivatsa S. Bhat >> >> The CPU hotplug callback related to writeback calls writeback_set_ratelimit() >> during every state change in the hotplug sequence. This is unnecessary >> since num_online_cpus() changes only once during the entire hotplug operation. >> >> So invoke the function only once per hotplug, thereby avoiding the >> unnecessary repetition of those costly calculations. >> >> Signed-off-by: Srivatsa S. Bhat >> --- > Looks good to me. I'll include it in the writeback tree. Hi Fengguang, Could you tell me when inode->i_state & I_DIRTY will be set? thanks. Regards, Chen > > Thanks, > Fengguang > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo@kvack.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . > Don't email: email@kvack.org > -- 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/