Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp918249pxb; Thu, 21 Apr 2022 13:29:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4sD2KUVcSnhp5NmPbWTxFwUxubafpE9aVDlZA4yA6M6X4lVrxBMV9m+PpLly9dLEi7LaP X-Received: by 2002:a63:50f:0:b0:3aa:55fb:149 with SMTP id 15-20020a63050f000000b003aa55fb0149mr1046770pgf.232.1650572963835; Thu, 21 Apr 2022 13:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650572963; cv=none; d=google.com; s=arc-20160816; b=cp0Ixs0yrt7XmRb/iRok1b7cpgkWV5V5G/SV/t2zb2ubYhKZTHUU3HlHZbKMuWb3da AyhJHTmOqaL3m7gpZlL2J/0n8tnHHb9ewefS4R70Wsy3/smGGXWZaq2mOlmnwPBgmgUB t11THaQvegkyU2xIv1Z0vpN9bLI1MwUfn31jhFJlVWwzKshCUduZeIdAzoz70srelxlr NntLA+tmyqYnFa9sZhyX8lycq5mOa9tRrlhUQByyd5OYxoIxckAf1l7HiAHmHFgFOb9m 2Ea18XlEWVWBxCUmZfaIUnkgHqGwEE77BgO+lNj0H506X1ypgio2PW0m3V3KXbIO0n5T xisg== 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:dkim-signature; bh=4ZHbzQMu8uYjFrthvRXYK9IV2thwt/HDx1K+L+tY5GI=; b=Ra/IVXqmX3WkwcBfIeNvSHYPvnoDWHC5NP8WlakO72aYaa8hrfktt4EJ0NjTfNPDZR K8/xE5a2e9/thwx4u78g52Y4E5KBM8XbIcGhNP3iq+kD8oRx+lL3KsI11UdLC6nhdfbQ fP9TSsb900h9cDY4uGcBuhOyB2fLOO3qGNn7+zUG1kNFfiyrA7D1PPgfXnxv3RG95Yrz nOl6xxxHqVPO9mke55516ME9PRZ3SPRW27JbfjlU3uizdCzQ9Gi3TORkoLB7/6eyQyRN cqBkUGKfm1wQGNEDPXoKLbGMZepDmJy8FmxppyE4amCaT0547T1m0oqjnogVtI9Nos+G MXjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NG+UAvEA; 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 q14-20020a635c0e000000b003822b0c2142si6003081pgb.279.2022.04.21.13.29.07; Thu, 21 Apr 2022 13:29:23 -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=@infradead.org header.s=casper.20170209 header.b=NG+UAvEA; 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 S229912AbiDULyK (ORCPT + 99 others); Thu, 21 Apr 2022 07:54:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382319AbiDULyI (ORCPT ); Thu, 21 Apr 2022 07:54:08 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55DC52A265; Thu, 21 Apr 2022 04:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=4ZHbzQMu8uYjFrthvRXYK9IV2thwt/HDx1K+L+tY5GI=; b=NG+UAvEABaHJ2j50viDG+b1G6o lC5Onb/goJrpHXhWUAFyb0/mF3qZngbv2pz0ZkYB6mbSti6dc4un0MhYyzZ7hx5Diyyruljjvs3zf 1z4BcBa6xGcdQcA79av1TpLUtMUhxE0/2GQdC0V+VoYxQwlJKc/duufKdIALVOeVJh0mIddZO3Ba0 bZGaycSiuRzgjh54ko3Y0RjMJgdP5JABVb0CL+rxevge4FsucATLLWzC1HOiHxSN3+aB9qNIYLxl/ qsZ8O92+Y2nidEVXqC05TNi+5AsUQCeIWNC7+y2PjqYzpjen5SajuvUOYgQGIUeY2l8nsnFEbc90i FCvqJa2w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhVKu-00530f-A0; Thu, 21 Apr 2022 11:51:00 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 2A8D09861C1; Thu, 21 Apr 2022 13:50:58 +0200 (CEST) Date: Thu, 21 Apr 2022 13:50:58 +0200 From: Peter Zijlstra To: Oleg Nesterov Cc: "Eric W. Biederman" , rjw@rjwysocki.net, mingo@kernel.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, mgorman@suse.de, bigeasy@linutronix.de, Will Deacon , linux-kernel@vger.kernel.org, tj@kernel.org, linux-pm@vger.kernel.org Subject: Re: [RFC][PATCH] ptrace: Don't change __state Message-ID: <20220421115058.GN2731@worktop.programming.kicks-ass.net> References: <20220415101644.GA10421@redhat.com> <20220415105755.GA15217@redhat.com> <20220418170104.GA16199@redhat.com> <20220420131731.GF2731@worktop.programming.kicks-ass.net> <20220420180323.GA14947@redhat.com> <875yn3zdag.fsf_-_@email.froward.int.ebiederm.org> <20220421072138.GI2731@worktop.programming.kicks-ass.net> <20220421102631.GE2762@worktop.programming.kicks-ass.net> <20220421104914.GA20402@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220421104914.GA20402@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Thu, Apr 21, 2022 at 12:49:43PM +0200, Oleg Nesterov wrote: > On 04/21, Peter Zijlstra wrote: > > > > As such, I've taken the liberty of munging yours and Oleg's approach > > together. I've yet to actually test this but it looks feasible. > > Agreed, but I am a but confused. Is it on top of 1/5? Doesn't look so, > and I can't apply it with or without 1/5. So I am not sure I understand > what exactly it does. Yes, it is on top of a modified 1, I mean to post an updated and tested series later today. Basically it does the TRACED_QUIESCE thing from your patch, and then does the DELAY_WAKEKILL thing from Eric's patch.