From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752220AbcFBHj4 (ORCPT ); Thu, 2 Jun 2016 03:39:56 -0400 Received: from mga03.intel.com ([134.134.136.65]:62058 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbcFBHjz (ORCPT ); Thu, 2 Jun 2016 03:39:55 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,405,1459839600"; d="scan'208";a="967269525" Date: Thu, 2 Jun 2016 07:41:11 +0800 From: Yuyang Du To: Vincent Guittot Cc: Peter Zijlstra , Ingo Molnar , linux-kernel , Mike Galbraith , Benjamin Segall , Paul Turner , Morten Rasmussen , Dietmar Eggemann Subject: Re: [PATCH v3 2/5] sched/fair: Skip detach and attach new group task Message-ID: <20160601234111.GA8105@intel.com> References: <1464752466-3494-1-git-send-email-yuyang.du@intel.com> <1464752466-3494-3-git-send-email-yuyang.du@intel.com> <20160601192118.GX18670@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 02, 2016 at 09:29:53AM +0200, Vincent Guittot wrote: > > My response to your above two comments: > > > > As I said, there can be four possibilities going through the above sequences: > > > > (1) on_rq, (2) !on_rq, (a) was fair class (representing last_update_time != 0), > > (b) never was fair class (representing last_update_time == 0, but may not be > > limited to this) > > > > Crossing them, we have (1)(a), (1)(b), (2)(a), and (2)(b). > > > > Some will attach twice, which are (1)(b) and (2)(b), the other will attach > > once, which are (1)(a) and (2)(a). The difficult part is they can be attached > > at different places. > > ok for (1)(b) but not for (2)(b) and it's far from "attached mostly > twice every time" You are right. That claim is reckless, I will change it to: "sometimes attached twice".