From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754187AbcFPSv0 (ORCPT ); Thu, 16 Jun 2016 14:51:26 -0400 Received: from merlin.infradead.org ([205.233.59.134]:39433 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752815AbcFPSvZ (ORCPT ); Thu, 16 Jun 2016 14:51:25 -0400 Date: Thu, 16 Jun 2016 20:51:15 +0200 From: Peter Zijlstra To: Vincent Guittot Cc: Yuyang Du , Ingo Molnar , linux-kernel , Mike Galbraith , Benjamin Segall , Paul Turner , Morten Rasmussen , Dietmar Eggemann , Matt Fleming Subject: Re: [PATCH v6 1/4] sched/fair: Fix attaching task sched avgs twice when switching to fair or changing task group Message-ID: <20160616185115.GL30921@twins.programming.kicks-ass.net> References: <1465942870-28419-1-git-send-email-yuyang.du@intel.com> <1465942870-28419-2-git-send-email-yuyang.du@intel.com> <20160615152217.GN30921@twins.programming.kicks-ass.net> <20160616163013.GA32169@vingu-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160616163013.GA32169@vingu-laptop> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 16, 2016 at 06:30:13PM +0200, Vincent Guittot wrote: > With patch [1] for the init of cfs_rq side, all use cases will be > covered regarding the issue linked to a last_update_time set to 0 at > init > [1] https://lkml.org/lkml/2016/5/30/508 Aah, wait, now I get it :-) Still, we should put cfs_rq_clock_task(cfs_rq) in it, not 1. And since we now acquire rq->lock on init this should well be possible. Lemme sort that.