Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5140455rdb; Tue, 12 Dec 2023 23:04:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGay4H4lGdvJpy694J6CbscEvz/tbEGg+5E+rpjWB3glyYBBgvOvz+pXb7YJ5frohh3YX/E X-Received: by 2002:a05:6a00:1703:b0:6ce:2731:79fa with SMTP id h3-20020a056a00170300b006ce273179famr3890504pfc.48.1702451056862; Tue, 12 Dec 2023 23:04:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702451056; cv=none; d=google.com; s=arc-20160816; b=dhSXrfZzAnXlnfsihLszR4ZvnVIbH3IbhzCYJvUKw09lV3UmRlTwfF+VMtvFG2tQPZ 4GURXFE+0WTCVxPo2ccDsNJ7GjuEzCShyJa/bOOqIrCvQ+3J8BsErOLAIUuFoKFulNFa U/WSMdmyBb58seeuP3xwdyirOQQ50t7A0IOvxHYXCRu2obmrfCLNwjABHptmSVFe5Fn6 hIHAg61zFJG1uAb5riwcicVtIN1G652CFWEyDCHq6GRQSiVUQ4uDZbV8730AmJF0ETr5 /eoko4Jm8q7GwsuH4geQf4ncgNpxZrAPrxAlHDdlZWwhfPG1a7Ti+GHqvE6dnzLd7B2d 00zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=88zzqEyO7+C8aw1Nv99apV5q6hRsDb7OBORsazRT2Io=; fh=744hpuN/kP+p5N/PEaZuI2Iq+LhXvpWLCV9dQXiARRs=; b=BH/mfxH83aKe8Qp+j9WOffwFqPeGdWS2amPgP167mqKTqYHf7nQTI8NVBKH5fACn67 SrqB8C5FT9YjfFy9y6o49ioAJsm7kf+umM8x7bt7wAl1kktKZXRhD6uoTISrvNQhLG62 ITy5rSSLkBmbi+delsXnSqhOKEb+5p8LmY8ozpiujXfQ0EbYzUKG8u8oB8rbqpBD/5Nc u7d4/wOsMs3i56H0bzoIEjubzLrCyeOngW6isPoz2VALQdU3p/0y6wyGHRWYNsJwGRLs 19XEZv4+mnEu2xVn8Zfm7sRqw/PkFjs/bSwsgruf/EU41205OVbGiUA3tKpR7G4NPpZO c9yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id v7-20020a655687000000b005be14925624si8717259pgs.714.2023.12.12.23.04.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 23:04:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 8FE6F8044338; Tue, 12 Dec 2023 23:04:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232973AbjLMHEA (ORCPT + 99 others); Wed, 13 Dec 2023 02:04:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232932AbjLMHD7 (ORCPT ); Wed, 13 Dec 2023 02:03:59 -0500 Received: from wxsgout04.xfusion.com (wxsgout03.xfusion.com [36.139.52.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D3399 for ; Tue, 12 Dec 2023 23:04:04 -0800 (PST) Received: from wuxshcsitd00600.xfusion.com (unknown [10.32.133.213]) by wxsgout04.xfusion.com (SkyGuard) with ESMTPS id 4Sqmb940DczB13yq; Wed, 13 Dec 2023 15:00:37 +0800 (CST) Received: from localhost (10.82.147.3) by wuxshcsitd00600.xfusion.com (10.32.133.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 13 Dec 2023 15:03:58 +0800 Date: Wed, 13 Dec 2023 15:03:57 +0800 From: Wang Jinchao To: Vincent Guittot CC: Ingo Molnar , Peter Zijlstra , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , , Subject: Re: [PATCH] sched/fair: merge same code in enqueue_task_fair Message-ID: References: <202312101719+0800-wangjinchao@xfusion.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [10.82.147.3] X-ClientProxiedBy: wuxshcsitd00601.xfusion.com (10.32.135.241) To wuxshcsitd00600.xfusion.com (10.32.133.213) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 12 Dec 2023 23:04:14 -0800 (PST) On Mon, Dec 11, 2023 at 04:23:52PM +0100, Vincent Guittot wrote: > On Sun, 10 Dec 2023 at 10:22, WangJinchao wrote: > > > > 1. The code below is duplicated in two for loops and need to be > > consolidated > > 2. Fix the bug where a se's on_rq is true but its parent is not > > Could you clarify which bug you want to fix ? Taking into account the additional information provided by Tim, this is not a bug. Therefore, this patch is merely a logical simplification. I will send out a v2 and update the description in it.