Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp847432pxb; Tue, 14 Sep 2021 09:59:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfZ97r0/CK7vYmJss6/OlxfjjKca6PZ8bj1vmPRb/O43EuK7ygYbmUGMoZP73DHnwL7rCl X-Received: by 2002:a05:6e02:c88:: with SMTP id b8mr12397229ile.300.1631638753514; Tue, 14 Sep 2021 09:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631638753; cv=none; d=google.com; s=arc-20160816; b=zjfG8hSeCed+R82L2mQKzpQt4gW/wylzDY/BaoNiwgTS7J/gjnkTDmrA0sD5mMFw8F 4Im9B/fgAk+q1YtIK7gC2UmGwUIzZJIlLc+JRehnW22uCn684u2/Es8gtB47Y5mRxZZx TZx3pKshB9jCciZCl9ufs/1ldh05L+F+1bfiDf6Ey9eJN+z+6znJXZSiujDfNRERt/4h KQFscd5lQVzMZViLHoQ0aFUSRpUAaoiCVL0xZm70A1rR22N2D479eSF3u1hz3d2rlSO5 7KbYbeFdXA+BxFkEVitvkTez0WMxjWvCjIJFGglxF99CJCtZwzBIpat54gjlkf+S9q4B Df0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fqQSMJ8RTVDNrryIulJY4YULkRA8eJdXQSnIYvRutRM=; b=MTwVNDzKc1kr/QoMZJVTOL4mKo47u60RXxuBk9iodOYDkyECJq+FeNT/OFC6L/MXoa 4BV7if0H37VRE88rYxd6gZkzaUtYLaxHqZfSn/8/Nwg0QyxeiC7xBKwG+zlEOMrVH8bJ 5tLxWx1/FHdCvJCwnTv727ZM6VYESatxDcDKVklmQWyS5ZmFBaNYV+57z3fWiFUA58fc gOTOpN3GKrkwh9GHLaCFHwhhH67ABpk+q2hhZIKC/g0BJ1OhH81l3dBZBR1AFPWOk2eH f251gRnhJLsZd2H8mf3OkTD+iwNor/+p2f2O4zdf5/4scbZRbKPrTjWv4GMLcnwYDnuN 9nfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bOyzoS6T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si12865032ilu.111.2021.09.14.09.59.01; Tue, 14 Sep 2021 09:59:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bOyzoS6T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229482AbhINQ7R (ORCPT + 99 others); Tue, 14 Sep 2021 12:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbhINQ7Q (ORCPT ); Tue, 14 Sep 2021 12:59:16 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F17C7C061574 for ; Tue, 14 Sep 2021 09:57:58 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id s12so20625ljg.0 for ; Tue, 14 Sep 2021 09:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fqQSMJ8RTVDNrryIulJY4YULkRA8eJdXQSnIYvRutRM=; b=bOyzoS6TBDReuHrgJ73iE7TVyyReZIJ23lD6wghw6vtmD+J/kmrNOL66GQYOZbGyn7 iao01Np6tfD4fXrcNrsZrxBOr/kZX5yIUbmdB+WYDiu0fdw8WROJMqUheZBabwzRdzJc S3yRwWcdOIGT+DzwYKmX2UxKzOm/KZEdkUs05mHhxgTb7tT8S+PggPMcaJOWr8QkQVZp 2Qf9lB+UKDuSz5Wjgt4QRgUgbvRbbZKpsTTT+Lqz04aeMN2mR0MNc4AdjPddJkHMDA/e cgtcfH+3u7tLbNezP8DCYXLw9I8RjlsQpv2s/843ZPjaMNl65AkJE4DHLWqd15d9ysK7 mPsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fqQSMJ8RTVDNrryIulJY4YULkRA8eJdXQSnIYvRutRM=; b=W/Lw1HuG49NlewXD9IPQ2fY4+97QZaZB6s2fVzxZtuCyd0l1m+OfPwkpoDL3mSca9y 1eD380RCgdKxPKbG7edTU26LTA9PiY4pze6gwOl+a3nwT0AaPl3dLjyHuF3xDYfqFMGM yBa8h0YtUUvTHOLgy5hcRQP3hhKhI2htcxV/vEGXjzmTaiT6ukVCXmhIceR4lk7AAMVt pg4ZtW3TiZ7Lt3gxi5wG/VTV9njBe1P12iIcKpd4WDTSmDya2aF98iJ5VOIwNIhWuRvH u9dsRiBgQ9xhl23KbQZqqcCC6NvfpVr/cBQbif5BdqkH0W/yTaTh76i5ZbZSHqctFBGB nfMA== X-Gm-Message-State: AOAM531FhoPcm9AqrtVbu6TqXAtgqdBH2SlY/5OjiyOfXvFfwx4p5rza U9ZAW+RVRtmc02x0szYudmjB6xgPfn45lbhL9ET6A9MgVhg= X-Received: by 2002:a2e:900c:: with SMTP id h12mr16782693ljg.263.1631638677287; Tue, 14 Sep 2021 09:57:57 -0700 (PDT) MIME-Version: 1.0 References: <20210908184905.163787-1-posk@google.com> <20210908184905.163787-5-posk@google.com> In-Reply-To: From: Peter Oskolkov Date: Tue, 14 Sep 2021 09:57:46 -0700 Message-ID: Subject: Re: [PATCH 4/4 v0.5] sched/umcg: add Documentation/userspace-api/umcg.rst To: Tao Zhou Cc: Peter Oskolkov , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Paul Turner , Ben Segall , Andrei Vagin , Jann Horn , Thierry Delisle Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 14, 2021 at 9:34 AM Tao Zhou wrote: [...] > > +- worker to worker context switch: > > + ``W1:RUNNING+W2:IDLE => W1:IDLE+W2:RUNNING``: > > + > > + - in the userspace, in the context of W1 running: > > + > > + - ``W2:IDLE => W2:RUNNING|LOCKED`` (mark W2 as running) > > + - ``W1:RUNNING => W1:IDLE|LOCKED`` (mark self as idle) > > + - ``W2.next_tid := W1.next_tid; S.next_tid := W2.next_tid`` > ^^^^^^^^ > W2.next_tid is a server. S.next_tid should be a worker; say: > > S.next_tid := W2.tid You are definitely right here. I'll fix the doc in the next patchset.