Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4503215ybz; Tue, 21 Apr 2020 01:39:04 -0700 (PDT) X-Google-Smtp-Source: APiQypLHbF2BDr7a8Haq6jz6XFdjQiHmDkPZNfyD/q+jg9pzD1+iLLweRyWrfO4oTc5ASyUcE+TA X-Received: by 2002:a17:906:560b:: with SMTP id f11mr18696871ejq.264.1587458344235; Tue, 21 Apr 2020 01:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587458344; cv=none; d=google.com; s=arc-20160816; b=cTvqew+wSxaehhyul+/izYRE4bUyPYFjT9KhuYiq7p97O7Pifow142MGy3oggEiZuv BcPOF8RqsLt2A+Cg/ZJ74v+CeNoLWlzTkDPwDyCv0IrvqqgOG93TDW2p+0yVYpS6yDgr im+RfEVqu9Wr90t2MB3P12dlInPbo7PtilJEIH+k0+K8Ar2fpZphkM/vhwjMi1JkyQ3M 8IBIrE3aPLEJWmIo8pt/X6iOUkW85KQGM+TYtqcolbBAXwcM5LnVDLSiqfrPPmbWM0Ll NrqluoTt6r7HqlGquLY83jizeM6tY35CqZtTBUGUTZBQfOWbfitV/xfpNKZm8XLdrG5X Z1bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=8OYwkkUbZ0/YHUHH8qJy7WIz+CreC7NTjKmUATwZf+Y=; b=F3MlJVw4N4OhiYb6wzkbYffzq22+3rjW+7NAUHUIGs7scQYbZRCA1SWsPeZP4b6/O+ iNyp5Sw081Df6z8Ly29PNNpgUx8kLDZKT43LL2D48Bbr8SLUPckDixUeDi5QuoYdXBUz BPbPWb31eYgC8sJCUV0h5ey4JfV+cr9rM32M4cm4hav51MUzUcZDSJ2Jzyc1o7rhE7Vf DoGJViHz0a8wBVz8u+eKKAU5hQVem5g09WZxbPaHaztBWoMq5toVkt+soIPv9Swc6LFX f9KkxGN1YiurX0QAhlMt/l9kViDGdWcAPWketUmOlv+1NkouwRhwukSs4rc89CT1Uriq wYww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si1103253edy.293.2020.04.21.01.38.40; Tue, 21 Apr 2020 01:39:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727891AbgDUIhp (ORCPT + 99 others); Tue, 21 Apr 2020 04:37:45 -0400 Received: from mga14.intel.com ([192.55.52.115]:29758 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbgDUIhp (ORCPT ); Tue, 21 Apr 2020 04:37:45 -0400 IronPort-SDR: r29xraq78hBiIhTHoza3FL1uTErqPK4A0EdPgKDte7i4WhRSgedea6wXNA2S5Sadw8TJ0ZURd0 XPCxg0WYpr5Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2020 01:37:44 -0700 IronPort-SDR: CEHbwDgISfbBnr3/OcAdWR6P1aWQPaTA2mGHl9y6W7jCn4K1uZuWdDCyELQdmIw/me8+TRYmwq EpTe7YWZRMBg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,409,1580803200"; d="scan'208";a="456688398" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by fmsmga006.fm.intel.com with ESMTP; 21 Apr 2020 01:37:42 -0700 Date: Tue, 21 Apr 2020 16:38:12 +0800 From: Chen Yu To: Vincent Guittot Cc: Steven Rostedt , Peter Zijlstra , Valentin Schneider , linux-kernel , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Ben Segall , Mel Gorman Subject: Re: [PATCH 2/2] sched: Extract the task putting code from pick_next_task() Message-ID: <20200421083812.GE9721@chenyu-office.sh.intel.com> References: <7c1eab789cb4b53ec5f54644c089ce27ea14088a.1587309963.git.yu.c.chen@intel.com> <20200420183232.16b83374@gandalf.local.home> <20200420231355.GU2483@worktop.programming.kicks-ass.net> <20200420222319.34f9f646@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2020 at 09:42:26AM +0200, Vincent Guittot wrote: > On Tue, 21 Apr 2020 at 04:23, Steven Rostedt wrote: > > > > On Tue, 21 Apr 2020 01:13:55 +0200 > > Peter Zijlstra wrote: > > > > > > The 'finish' thing isn't too far from the truth; it's the last thing we > > > > need to do with the prev task (in terms of sched bookkeeping, I mean) - > > > > and in Chen's defence ISTR Peter suggested that name. > > > > > > > > Seeing as it's a "supercharged" put_prev_task(), I could live with the > > > > marginally shorter "put_prev_task_balance()". > > > > > > What Valentin said; it's the last put we do before picking a new task. > > > Also, I don't like long names. That said, I'm open to short and > > > appropriate suggestions. > > > > I wont bikeshed this too much. > > > > Is the "finish" more appropriate with the other use cases that are > > coming. I do like that "put_prev_task_balance()" too. > > This name looks reasonnable > Okay, I'll change it to this name. Thanks, Chenyu > > > > -- Steve