Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2591587rwd; Wed, 17 May 2023 11:39:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5R4Pu7gW4ySlEfF0Ivdg3+uw89jBdOmn73MpWmpWNRDkq2WODEmB25Xu0XfzKQGi2Y4fTE X-Received: by 2002:a05:6a00:15c1:b0:64c:ae1c:3385 with SMTP id o1-20020a056a0015c100b0064cae1c3385mr723223pfu.32.1684348777547; Wed, 17 May 2023 11:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684348777; cv=none; d=google.com; s=arc-20160816; b=Qe8KYKVRDL7QqCXZ1iYf4IzPfqxJIbdbLjHmRdpiLPxBMMnULCeBkcrZp+smC7/Ms8 rCClXL4oAQItNOOGmwkyd0t8aZEP5ggDAgqwfSNDw1zvI0nGYljg+UMrd74wrIMuTBEt qE1ZW2Y91z9sjvc43NOA6cGBNe1c8PFAe9SgF6B6R1DDLmfYAVsCcaSnmw6tPcCjMGJQ 0G/XR3XXWi5dgFyHg2wgopzWR/yz2hFFRVzAprclEmZ42X5N91KxcR8tTtxWARjROsjr 8RxupBPflbo58bMzFEkwUmYPD4zhy2mnbMEsfMTGpy5G2pGE3MNqhO0XrzMSspnd+DNs 6atQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=HThJWHt+9WBvga9pZ4cJjWVmjkbJR7DeJH70MuD4M9A=; b=XGApGTDoXZIWHCOzcO/fFNUhf6c/coiRoscvM3DWCSfE6QB9Dea6et9N3VF48csPLL k4u1EAH6A02f7oL7Sdzj3BwhqggK99rWjbthOnRG5MZta3MdciV0MOAp6FUulzhqJP4V on9lMktHlGzzbMNNcBxYw1E4/TbTftpXbfONGtbiRI7TIKLIogrN6fvEoTOFsUgbHMOc nEqV1Dcneis81+qQmP9BxaoBlSojydJQZEDERCG4qOZGjAL16uYEoEZHD/JzgDGJD2jT bzjR0rlujcGBIl8gRJ92tWxlhDOEGYdoLmI+GC/UCY4220qoaXFJrYaeiYKbwVrBTTnU tVsQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r28-20020aa7963c000000b00646df7a783bsi22131053pfg.118.2023.05.17.11.39.24; Wed, 17 May 2023 11:39:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbjEQShS convert rfc822-to-8bit (ORCPT + 99 others); Wed, 17 May 2023 14:37:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229695AbjEQSg5 (ORCPT ); Wed, 17 May 2023 14:36:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0DEB2134; Wed, 17 May 2023 11:36:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 462F164A11; Wed, 17 May 2023 18:36:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 701ACC433D2; Wed, 17 May 2023 18:36:52 +0000 (UTC) Date: Wed, 17 May 2023 14:36:50 -0400 From: Steven Rostedt To: Mathieu Desnoyers Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Boqun Feng , "H . Peter Anvin" , Paul Turner , linux-api@vger.kernel.org, Christian Brauner , Florian Weimer , David.Laight@ACULAB.COM, carlos@redhat.com, Peter Oskolkov , Alexander Mikhalitsyn , Chris Kennelly , Ingo Molnar , Darren Hart , Davidlohr Bueso , =?UTF-8?B?QW5kcsOp?= Almeida , libc-alpha@sourceware.org, Jonathan Corbet Subject: Re: [RFC PATCH 0/4] Extend rseq with sched_state field Message-ID: <20230517143650.55eb8ce7@gandalf.local.home> In-Reply-To: <20230517152654.7193-1-mathieu.desnoyers@efficios.com> References: <20230517152654.7193-1-mathieu.desnoyers@efficios.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Wed, 17 May 2023 11:26:50 -0400 Mathieu Desnoyers wrote: > This prototype extends struct rseq with a new sched_state field, which > contains a "on-cpu" flag kept up-to-date by the scheduler. > > It is meant to be used by userspace adaptative mutexes to decide between > busy-wait and futex wait system call (releasing the CPU) behaviors based > on the current state of the mutex owner. Woot! I'm so glad I talked Jon into hanging around for André's spurious talk. He's the one that brought up rseq (as he mentioned in his article), and I guess you read that :-) Unfortunately, I'm in the process of a lot of trips and meetings/presentations over the next few weeks, and I will not be able to look into this. But I hope that André could test it out. Cheers! -- Steve