Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp503717rdb; Fri, 6 Oct 2023 09:33:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHzjyKSQ9FOnmMba4adPTf+4ic9263biYIEmjSQh2GGdlCHCAQz0omMqRJa8w/LWS+gwY2T X-Received: by 2002:a05:6358:e48c:b0:143:7cc8:70b1 with SMTP id by12-20020a056358e48c00b001437cc870b1mr8169295rwb.6.1696609987070; Fri, 06 Oct 2023 09:33:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696609987; cv=pass; d=google.com; s=arc-20160816; b=NM59uT4EyoJrR1WjPphUaHv3WIxIkpY3h084DhAH5Qd+TAUMWVTFreimydsjGPMzWu J0MporKsP8JYmzNpNSzzqweqbarF6YehKuko7o8/O2elic5adyyyGCrFXS7CpNDlfjKQ OSVSmeyVGrBqI419k4J9joXeA9NVDjMU8tUwv5ceejdZOhioaEdEmhjpNahSqii3KocM lsPoBC/EWI1kasrOerUOZsEYIpv0be9ut0Pir8sTNY/7rB0KGFfduJnyGq0bOnBVd23y U7NmqAEqqH+aaB3tlefXPLY0wNIKdmUMwnsqRvoDh78qPwFoeWSarOedY4SegsC8/u5D pW4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=hNDGk3wpKmYUiTREz/ODSg3XH/Mbvo6oX9jxcvJbwBk=; fh=NAixHzsamCdA14dQf6T4bPHmKxEBssqtqys16HEdxKI=; b=ghQka/bbuWY19NyjXhaVjy1qVEhuMWKbDZtM7nwuXmV17Kj0AZ9elqhByMGPhGaBjo s/ULq6JOVPymgsNNr2X/cmDTaj1H49DrDc7CdAmAqllKVb/1lVLTmCYR31RDfOBAJHv4 4M3mESAZOnAOWuPShJuXfwG/WLvX5JqAomr+nDLCYwDVKUIDNcMXYiJECtutbyvKfyWE YTyyjzZjOFq/qAoarNM8jjWRCVtMBWvtmizdxyN4fZwjfQFUUrXKcRXKzm0zaYWsR1Ti zaDcahBMZ9iucyWPE5lWsdXzgq24CptdsQRRgvmjPmEN2/dPXSk7bbu08mbM5oZ+O9TC 4dKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=lNVOE81O; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=XbD9H5nx; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id fh24-20020a17090b035800b00274ac850fbbsi1086651pjb.132.2023.10.06.09.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 09:33:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=lNVOE81O; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=XbD9H5nx; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D7C4980F66AE; Fri, 6 Oct 2023 09:33:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232609AbjJFQc4 (ORCPT + 99 others); Fri, 6 Oct 2023 12:32:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232774AbjJFQcz (ORCPT ); Fri, 6 Oct 2023 12:32:55 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E75ECA for ; Fri, 6 Oct 2023 09:32:54 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 396CcC16025434; Fri, 6 Oct 2023 16:31:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2023-03-30; bh=hNDGk3wpKmYUiTREz/ODSg3XH/Mbvo6oX9jxcvJbwBk=; b=lNVOE81OynQG2PXASjYYH3ZDkZl3kKGYSa1Q4JpkuA/pg1I/cBf/CUqnUajicexiEbP8 Nc/S3Wct1JjjDzhUoJr+jwFGdjo8l2X3KHdDsieBe70E6Fgnw/SWKlRtyU/5O3CvdtDM pbx616ZfogCBA2TH1my/++Kqca9GhI4fHcpfYzyDhybdikv/cSwA7mtd7WMtBeOoJLE/ H0sRKjSEEZKE2eRmbFGtPpt52oV686V0P4LDsI8/zX05a+yjsfL3iPFvc5h91GRC3F34 QAjyTWsn3GljkSY0x8SY1Fuyy8NvcLhkdy1wsCem9/WwNk1G20IYi75grHxdMwt04fu5 4g== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3teaf4cb6y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 06 Oct 2023 16:31:56 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 396Fjs6D005994; Fri, 6 Oct 2023 16:31:55 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2169.outbound.protection.outlook.com [104.47.73.169]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tea4axnk4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 06 Oct 2023 16:31:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dOzFlbnuiTt9cnxUNCEAZ6VGsUc3xVbphr6wyPvDwMNsZeUI4sFNPyT7JIh38Ax/qPl8eXc0vbvw61xlMAfvpMp50v4DP4XsQgwsqnF4iooCWp5fbQD11zZWbrUCh3VN+PYihmgi5AY0hXgrWZK9biuEsq47DYjJ6GFoeBIrZHCyoTYpc90A7w5OP/ds+rMqDPp7BK3ZovxMXiabSFpO7MT4JO++wANV1ORw+VHvhq9rX76GEq7Tck1AEEwcMBggwFKVR2Wm45WBGhL+01XlJPId2M702uBvvHc6IsEru+Oz25Lq2o9NYnidJrm1z6omGXgLygkL8nO7r/KYG2A0pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hNDGk3wpKmYUiTREz/ODSg3XH/Mbvo6oX9jxcvJbwBk=; b=hGXeWH7fPcpbz5YYBlSaBJM1cQoSN7jpnJeomeixEMgjLrvp3nkH/Yk041bCQT4V/Gu052vNJQr6qM6P2WffNbDmGYai9uj2n/T4OM90YmZEzpZdbbi791K2Otj8gkNC4BwyPebqssnBOifLe8nqG7SqrHWitJU3DgQ4b/mj6w0KWnh4qo8uKAkjKAkNrv+hEXovHVPPmQAlpKrv3707iLYf/z/crxW2/+jm2VT7AyWZRZ26M0oFcsfUvML3pTynrU5LQx9Ug0OxupmXY0wuQrG9qolVQU9JEbFLoTtJamApA2t0b2mvhZ3BYDEYERwPagXv+K6QvsXpTb9pxNToXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hNDGk3wpKmYUiTREz/ODSg3XH/Mbvo6oX9jxcvJbwBk=; b=XbD9H5nxSJkOCjm7NqSgQV4vAZju5r1HOBiRkBTZcTieDyrhsqkdi6y3+wq0WCSWWs6t9QLf8PPrWcOFJCirbB6U4tFWV5SUY/JBg/WnBoX3IFGyovoKcJJY88PjAccYD4cjs9f7aTlLKDOjzA1sZ2EIuf3bWCLKLQcxCEm8ahQ= Received: from SA1PR10MB5711.namprd10.prod.outlook.com (2603:10b6:806:23e::20) by DS7PR10MB7156.namprd10.prod.outlook.com (2603:10b6:8:e0::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.35; Fri, 6 Oct 2023 16:31:51 +0000 Received: from SA1PR10MB5711.namprd10.prod.outlook.com ([fe80::1aa1:e3a9:cfdd:f48]) by SA1PR10MB5711.namprd10.prod.outlook.com ([fe80::1aa1:e3a9:cfdd:f48%4]) with mapi id 15.20.6792.026; Fri, 6 Oct 2023 16:31:51 +0000 Date: Fri, 6 Oct 2023 12:31:46 -0400 From: Daniel Jordan To: Chen Yu Cc: peterz@infradead.org, bristot@redhat.com, bsegall@google.com, chris.hyser@oracle.com, corbet@lwn.net, dietmar.eggemann@arm.com, efault@gmx.de, joel@joelfernandes.org, joshdon@google.com, juri.lelli@redhat.com, kprateek.nayak@amd.com, linux-kernel@vger.kernel.org, mgorman@suse.de, mingo@kernel.org, patrick.bellasi@matbug.net, pavel@ucw.cz, pjt@google.com, qperret@google.com, qyousef@layalina.io, rostedt@goodmis.org, tglx@linutronix.de, tim.c.chen@linux.intel.com, timj@gnu.org, vincent.guittot@linaro.org, youssefesmat@chromium.org, yu.chen.surf@gmail.com Subject: Re: [PATCH v2] sched/fair: Preserve PLACE_DEADLINE_INITIAL deadline Message-ID: References: <20231004011737.188682-1-daniel.m.jordan@oracle.com> <20231004130908.238992-1-daniel.m.jordan@oracle.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: BLAP220CA0005.NAMP220.PROD.OUTLOOK.COM (2603:10b6:208:32c::10) To SA1PR10MB5711.namprd10.prod.outlook.com (2603:10b6:806:23e::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR10MB5711:EE_|DS7PR10MB7156:EE_ X-MS-Office365-Filtering-Correlation-Id: f02a2cca-7bd9-426f-477e-08dbc689bec4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rkTN9zEEIBaLxcqPBbEG/2io/tTHH9SZhE6uHFuku3hwzz42T/AV06jG2EKMvvTJHmCTREh7ALFExjiPyDCSkbU8a4daDAD03O8UrHddC0sJNYIUvdhT5s7GVLiOee1p1QtdvWfxbZKQWPXYUrm2TSH/nrarQC6SUVprXnc1RLQEslnG231AS7DyTzhuv13vdIkChphf1AH58UFqyhPkvKTpsup/dvA8i+pTd4NcqXNIialeuasA+2A3V9gXR2qZZZv12AfT/qOv+4EWp38V6teTxFW0YSUZ7PKH/6srtm1Lwb+6X30V3fPSvZ7SxO1tUHtTQ6quSXRXAUv4z8e7BHfKeE9lzFVhqGoSM7jK6eCnKRSjG32lxU6em1yV7sSCxkLb1XUs6mn0jGOQwWo6BbgeTZKB+Or7kbwxuLDBB2nVr/4KtUsL1kJATOdpSpIlpQmRwd4Gi6CReGtZYF5NMw+O9gSIX5/aGscq5EUcki5BNkiMxw9Iq8fpnCT3zWFF+SAfi4t48NkuTvMe6WWgKQQ+IOGGBbQxkrM8CBx4Ow1KfIgPa7ep+Wie+GysjQaU X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR10MB5711.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(396003)(136003)(376002)(366004)(346002)(39860400002)(230922051799003)(186009)(1800799009)(64100799003)(451199024)(6486002)(6512007)(6666004)(478600001)(6506007)(83380400001)(26005)(66946007)(9686003)(7416002)(33716001)(316002)(8936002)(4326008)(5660300002)(66556008)(41300700001)(66476007)(8676002)(6916009)(53546011)(38100700002)(86362001)(2906002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?D+gPogVZSU6LF48sIYWEmV966eHp/rjWhpFQKpoxHew4YwQETk6aXtPaLOp5?= =?us-ascii?Q?WjobXw7pC0M/KgHxM+Xq8PEhOQfhBlmV8O67pjz2OCVPJ5rkCOkbbkGG442d?= =?us-ascii?Q?qRg120XGW4NTsWaFlEm4rEYNGEq92aV2a/gOJ5UeLPvAjDMa1bfHn5N+1L5i?= =?us-ascii?Q?cdzm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vFl5Zk?= =?us-ascii?Q?mvsGj2KbQl1KeFt5TbQZS6rJQql6J5u2Z4L7sTrVDg2XveQlClypBh6gGB7t?= =?us-ascii?Q?QW8zV9/7MuuRz218/5m9ecoLkZ9MUC+zhpny3x0ThgYnrgVbW7nfT9jr+SVr?= =?us-ascii?Q?oxnKigrF+Kvo9t7j10VvV8mfqPIuVZDql7Qp/uOjDl5Hck3ppl2SxOGksG+5?= =?us-ascii?Q?JIDgsQ3waKolZ/akA2U1s16PS/4/JazkEiN6dSjv68adFLnyrb248DDHs0gB?= =?us-ascii?Q?l7iVolSTmRpOBQlrEvxK7esH/DXWwNy6BvO48mJuAVixFqzxq8cKVjZpPL0X?= =?us-ascii?Q?RNLkuMJdvtlPxWc3qwgx87nbOX7oVQmUseUmZKzT1z+C2BdkX+HPPWG4oz2b?= =?us-ascii?Q?cF56Fb9uDIRlaVl4AkhOIPOCv/+PgCFKEUaHlqGJDpOsRnGrqbqzZmSxts8p?= =?us-ascii?Q?3DpUkCHYFx/hMyjX7EVdX5+8j5vTqlGAGKQwwCNrXD6Dm5MX992LM3elis8s?= =?us-ascii?Q?MFOWRNNevRclze9jQU+WMDBM0uylKlfqK7g2BYTyiMkU0wegY/yfIpog0Tts?= =?us-ascii?Q?NA=3D=3D?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?us-ascii?Q?lZvooZ7J0cEN5LO8mvWcimoRf38fROfLSZLRmgYYkNn55XUvfEOElgbAqYC3?= =?us-ascii?Q?xOQaHXZ7SfU+d4GBHGB/mWPJS7X41LKWGotxKDmTYLFgDmFdUPBo37HpU4ee?= =?us-ascii?Q?FgCdijvebXeVugbIg6lPkvCR4u5BMysFhpZSgfcN3KO4k9NBvwPU556AZdjf?= =?us-ascii?Q?gc+siDymF6fvFw15LxAsbstVbLWYMrtJ2VE9vBtdvGOtndu7Zt2mdxkeA6/2?= =?us-ascii?Q?tm8suhyqK5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/TDO5bytiE8xm2bXk0?= =?us-ascii?Q?U5+aZ4R3yX8Ruh7eqbrBMRS73sxk/dUutTleFJcAae6lo5yZuS/2KdigIfqu?= =?us-ascii?Q?FSpl6wCg0hd4devPytiR0mTK/CPERGVavH6nSAO3qwZzV+11y2odgX97T1c6?= =?us-ascii?Q?0HgtJvGFWaRwyD5COhdW3qP0Sypmf51vLIJxLP3tBfR0CWvGB3zW30nkfYmR?= =?us-ascii?Q?LoITma3p5klj7NTlB9adTsbQyxBfGnJcdRs8g0C/5OR2GrD9Gq0UzRklY/y0?= =?us-ascii?Q?4n/v5zg=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: f02a2cca-7bd9-426f-477e-08dbc689bec4 X-MS-Exchange-CrossTenant-AuthSource: SA1PR10MB5711.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2023 16:31:51.7311 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eBorplrTibabQJwrj36byVWQw4kaHZpu0erCgrdhGlmuPBQ6ywtuNCzouBqb6jRFz44UV/GHZaknCNig0crFNltdga0IBIJQeCpvNBcJiVE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB7156 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-06_12,2023-10-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 bulkscore=0 adultscore=0 mlxlogscore=999 phishscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310060124 X-Proofpoint-GUID: H21-uJDPRjhm4KTvDEsRryoDM33C0EH_ X-Proofpoint-ORIG-GUID: H21-uJDPRjhm4KTvDEsRryoDM33C0EH_ X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 06 Oct 2023 09:33:05 -0700 (PDT) X-Spam-Level: ** Hi Chenyu, On Wed, Oct 04, 2023 at 11:46:21PM +0800, Chen Yu wrote: > Hi Daniel, > > On 2023-10-04 at 09:09:08 -0400, Daniel Jordan wrote: > > An entity is supposed to get an earlier deadline with > > PLACE_DEADLINE_INITIAL when it's forked, but the deadline gets > > overwritten soon after in enqueue_entity() the first time a forked > > entity is woken so that PLACE_DEADLINE_INITIAL is effectively a no-op. > > > > Placing in task_fork_fair() seems unnecessary since none of the values > > that get set (slice, vruntime, deadline) are used before they're set > > again at enqueue time, so get rid of that (and with it all of > > task_fork_fair()) and just pass ENQUEUE_INITIAL to enqueue_entity() via > > wake_up_new_task(). > > > > Fixes: e8f331bcc270 ("sched/smp: Use lag to simplify cross-runqueue placement") > > Signed-off-by: Daniel Jordan > > --- > > > > v2 > > - place_entity() seems like the only reason for task_fork_fair() to exist > > after the recent removal of sysctl_sched_child_runs_first, so take out > > the whole function. > > At first glance I thought if we remove task_fork_fair(), do we lose one chance to > update the parent task's statistic in update_curr()? We might get out-of-date > parent task's deadline and make preemption decision based on the stale data in > wake_up_new_task() -> wakeup_preempt() -> pick_eevdf(). But after a second thought, > I found that wake_up_new_task() -> enqueue_entity() itself would invoke update_curr(), > so this should not be a problem. > > Then I was wondering why can't we just skip place_entity() in enqueue_entity() > if ENQUEUE_WAKEUP is not set, just like the code before e8f331bcc270? In this > way the new fork task's deadline will not be overwritten by wake_up_new_task()-> > enqueue_entity(). Then I realized that, after e8f331bcc270, the task's vruntime > and deadline are all calculated by place_entity() rather than being renormalised > to cfs_rq->min_vruntime in enqueue_entity(), so we can not simply skip place_entity() > in enqueue_entity(). This all made me wonder if the order of update_curr() for the parent and place_entity() for the child matters. And it does, since placing uses avg_vruntime(), which wants an up-to-date vruntime for current and min_vruntime for cfs_rq. Good that 'curr' in enqueue_entity() is false on fork so that the parent's vruntime is up to date, but it seems placing should always happen after update_curr(). > Per my understanding, this patch looks good, > > Reviewed-by: Chen Yu Thanks! Daniel