From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751937AbcFPHVu (ORCPT ); Thu, 16 Jun 2016 03:21:50 -0400 Received: from mga09.intel.com ([134.134.136.24]:62850 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751246AbcFPHVt (ORCPT ); Thu, 16 Jun 2016 03:21:49 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,478,1459839600"; d="scan'208";a="988575443" Date: Thu, 16 Jun 2016 07:24:53 +0800 From: Yuyang Du To: Vincent Guittot Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , Dietmar Eggemann Subject: Re: [PATCH v3] sched: fix first task of a task group is attached twice Message-ID: <20160615232453.GN8105@intel.com> References: <1464623541-25429-1-git-send-email-vincent.guittot@linaro.org> <20160615191914.GM8105@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 16, 2016 at 09:12:58AM +0200, Vincent Guittot wrote: > > Then, when enqueued, both cfs_rq and task will be decayed to 0, due to > > a large gap between 1 and now, no? > > yes, like it is done currently (but 1ns later) . Well, currently, cfs_rq will be decayed to 0, but will then add the task. So it turns out the current result is right. Attached twice, but result is right. Correct?