Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7098794rwr; Tue, 25 Apr 2023 08:06:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Ahz0L2FnZvo/Ahu0VAdPCqZZNibq8IkrpwJhubK/61JZ0UzDGvwObVUVLCT5SDpQ6p11h X-Received: by 2002:a17:90a:282:b0:24b:d883:9068 with SMTP id w2-20020a17090a028200b0024bd8839068mr3587763pja.3.1682435160244; Tue, 25 Apr 2023 08:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682435160; cv=none; d=google.com; s=arc-20160816; b=wvNXePefOSLOyEVbSO/azfdOHnvFSgHoCD1yrGDN3EvWMSW1gb8YmgBXJ1psnekX0C Xu5aiwcXISxhnHPME4d9DmTkGBTz+c4d7u7NISBMmlbeRpC1X3yWE5CRpGqimy4W4uhV ztYj3BJVSM/KkWLmteYaRjJS0e+vxloBG3slt+w8k175NhAMJHQojiJWYGrRw2adeRI7 Ym9IdvTLPCgZKQtrl4wFfYmndA0EkmnB9uIoNQgxWXfTW82rvGAfKgguuQLh+OrA034e HUZM1DE4GmlH1eqdvGc9OcSqbm1HjA++xs4M9S3UA+ha3zy4BUGPRukaxiiq9ttQz3RZ ie6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qFkADC61Ruy0YiM9Q7ZuLeqnPlgtrzBobMvcjsyYsxk=; b=IYucjK0tSPfkJaH6GmeszNbXJ4obsG87aKXsFCq/1FWcn6mkr7JqHhrCc/be8OfB1Q WwxBLj5Zv73W1kpxsTkfAW0rliR33kuqJWXEfCDp5amjPRPvRTAv4vALWO7Z8VTBHXCr tHJ/zyglnWPZw7Ls23zWeLifKOLk1PdDYKi+8m7WLVfqO+gLpHiIv36o3Nvl3HqwtIBG Evqw9UC6g2DDN8jFIo0h+whQixraCtTB8kTkA4KGOmEzmwHxsCjogoBycev3vaqeKbUF kkqHg6ZV5OdK3jUUtw+VRUkUZp2vbQzToh8+4mllzX4I2URVeRetZ49ddTD7WroWJuhi CxYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=SH22TsHZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a17090ab70200b00246cf18c353si16052602pjr.54.2023.04.25.08.05.46; Tue, 25 Apr 2023 08:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=SH22TsHZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234397AbjDYOwr (ORCPT + 99 others); Tue, 25 Apr 2023 10:52:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234385AbjDYOwo (ORCPT ); Tue, 25 Apr 2023 10:52:44 -0400 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAE263A92 for ; Tue, 25 Apr 2023 07:52:43 -0700 (PDT) Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-3ef31924c64so121901cf.1 for ; Tue, 25 Apr 2023 07:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1682434363; x=1685026363; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qFkADC61Ruy0YiM9Q7ZuLeqnPlgtrzBobMvcjsyYsxk=; b=SH22TsHZsxrHWA4Mt9nlzmpr5qi2uSUwjRQ4uOISknbWrSlr8BFHkPe/aR7eJPHGum cppRaxIDzzT2xXBArK0N+bAh7auJyizCpA3imu/QTB5qBF+YeePce879aChDQ4WcQ1Ea X2YVhFfUjwjkRg8i1SWEdQcLEExtMAJyG1537RABtFoLWpkDhGufwHrxM5dEj4NXYcRk fuTWmk/oIyN5mXPNVYN39kI2ZNKoLyidNgI9h1saP78ZoJjt6J/oUJTdTwPFPc1wZqur kMXrqe+R7RncpyKIUOAyjn4Kdwy0YClL2QRuzgPcjcRVmYt0ZJSSqRdFnw8sAkmDNUiK hFKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682434363; x=1685026363; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qFkADC61Ruy0YiM9Q7ZuLeqnPlgtrzBobMvcjsyYsxk=; b=NANvWj6MhYMjQJVOQU4T2XOAocM2eIlT4iBRs5TANlZ473uIvPK/DMn9wRo5e854mR u2zhHt+A0IaMvLQclyAYcWT/yp6p0axpRW8GKxKDxlLl1gAVUWrUxUsdbpV5aSj9siGO idlXQMCdlJ3d1hY1ZOrn0p23emqfaUh9OsV9//H4aLHBfqeJbUS7Atq4n9+GGipJ45rR sf1Ddn0SbIotq4F5Y/dUAKSQUBYc8mf27usCc0XAiKd9dkRo5JxlNd+I/d6XLbUH3yWp P4j4BvX4KL6Su18CwM8ea3CuB7HTI8jDdn6IbpipwvHyHxBHYkMrV3w5DPjdhTGTN0gJ OArA== X-Gm-Message-State: AAQBX9ckB7Oi4tXzvQ7eIEU4sQBMPsL6ardiPnBAtLzAEjFsXefCZTWR Qp5z304Zeug8Bkx/O7Mh7hOtZyaVc25z2coLCt2M X-Received: by 2002:ac8:5f4e:0:b0:3de:b0b0:557c with SMTP id y14-20020ac85f4e000000b003deb0b0557cmr358349qta.18.1682434362935; Tue, 25 Apr 2023 07:52:42 -0700 (PDT) MIME-Version: 1.0 References: <20230411042511.1606592-1-jstultz@google.com> <20230411042511.1606592-10-jstultz@google.com> <20230422101427.GD1214746@hirez.programming.kicks-ass.net> In-Reply-To: <20230422101427.GD1214746@hirez.programming.kicks-ass.net> From: John Stultz Date: Tue, 25 Apr 2023 15:52:31 +0100 Message-ID: Subject: Re: [PATCH v3 09/14] sched: Split scheduler execution context To: Peter Zijlstra Cc: LKML , Joel Fernandes , Qais Yousef , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Valentin Schneider , Steven Rostedt , Ben Segall , Zimuzo Ezeozue , Mel Gorman , Daniel Bristot de Oliveira , Will Deacon , Waiman Long , Boqun Feng , "Paul E . McKenney" , "Connor O'Brien" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 22, 2023 at 11:14=E2=80=AFAM Peter Zijlstra wrote: > > On Tue, Apr 11, 2023 at 04:25:06AM +0000, John Stultz wrote: > > From: Peter Zijlstra > > > > Lets define the scheduling context as all the scheduler state in > > task_struct and the execution context as all state required to run the > > task. > > > > Currently both are intertwined in task_struct. We want to logically > > split these such that we can run the execution context of one task > > with the scheduling context of another. > > > > To this purpose introduce rq_selected() to point to the task_struct > > used for scheduler state and preserve rq_curr() to denote the execution > > context. > > I can't say I like the rq_selected() naming :/ So, I'm not married to any particular naming, but the earlier use of "rq->proxy" in the earlier patches really made very little sense, at least from my perspective of the word (especially as it had logical knots where it would set rq->proxy to what pick_next_task() returned, and then go and set curr to the results of proxy()). So it seemed cleanest to separate it out and use a different term. We could do "rq_picked()", or "rq_next", or ... suggestions are welcome. Thanks again for taking a look here and providing feedback! I really appreciate it! -john