Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp723999pxu; Wed, 6 Jan 2021 02:39:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmVcvyhgf2qaXN89BCMO9+Ehr/PiKSGbzzkEW0x3oypmBhNWsEt3Jn1ICucUeH/U16xgjq X-Received: by 2002:a17:906:adcb:: with SMTP id lb11mr2362308ejb.346.1609929589940; Wed, 06 Jan 2021 02:39:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609929589; cv=none; d=google.com; s=arc-20160816; b=q5h2l2iPiZMa5rrpHpSYNdFhqro/UfwQUkngsvIH1/SeiSCxvqItUEmsyGG32yM8Sr pXvNCiTP6yT7cuDsXIC20aLpzGFwDKalMdjsqOR0yi2qqFi2x4pLX2ct+KgdQQoUhZ05 07hX7oh8qmawDVXs3C+YfFfCKZrP9Gs0P4OJXeCsFg6IPbE/yQ9Iq46ojDmdhpPYDVqc te6kapSrvsKULadeNOs5aH0wo2DLSMlvA/R0kmWyd3fZYf9e6NTKOEdAwLNSq0pjmMXE yyAaXybVoNdNawwCwIZbW0/HBGDvFLzP8ljfmaTKiN9ZfJqXL0zX6DuZ+1unQ/0nf4jy Cwfw== 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=bVpL1mGdE1znAIBZqUAoV1hHGWEPvW8K3ojw3xc9b+M=; b=rImonOHNafWsL1l7nMDUNPqefSj0JNlW9In6Q+OeP93rxccVTlZwLfdNKWMaoIw7aW JHrnvEhwZKljeThM455D+pJ7I/rQgJZvPSX0KWvYSV4C0jG8PwWD9507d9envuLnqZav 4D7xsoqgLYyJdedbsbNEFLWdXlzH9hjAMOMePsyXxmcBRmO+1gq0TGLBvECq9RCbQ4Jw O2NpTYhQu2A2qhFIkDYw3mHnL0dDhA49HVKTGiKuP0Jda4ehB7dfhWpZ23Zk5TQOKS0T 93mk63JDw0HVcN+h9JaH1LtdNRjfseukdixW3G2bzXt6xQsLJ6CD8MYOpbYc0ylgqP4j hdqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=omZNe+9F; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si763936ejd.332.2021.01.06.02.39.25; Wed, 06 Jan 2021 02:39:49 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=omZNe+9F; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbhAFKgx (ORCPT + 99 others); Wed, 6 Jan 2021 05:36:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726862AbhAFKgx (ORCPT ); Wed, 6 Jan 2021 05:36:53 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C63CAC061357; Wed, 6 Jan 2021 02:36:12 -0800 (PST) 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=bVpL1mGdE1znAIBZqUAoV1hHGWEPvW8K3ojw3xc9b+M=; b=omZNe+9FXXLxjBfSEMIE4cUKb3 rnyZVbDU3fbqcK9qpv/Ck2jBkMrwr3aQiL//361OiVvEoUbCdEFQu18X82YROGTWUED3YQ0MyJzgM h9Zaw3jVVldE335/DSoyOnvxXo+jexl+7ddRehUhOV5JaqMmuLtlcSvDPEh8L8ZAhX77gtaNDYnJP hBql9d3ZRNJfxEAyuCUpFDxIvk5GCmmht89lB5rnLjmnN+YFvZLcoJDI2kX3Mp5mV/MiowQoGMXi3 PBaiGYGtxll9pO/IlDnllQlS7f3wCuHU0XTGFXujT4c3l6p/wvHRX0iukAPsj5JAnvCPsRMELE7/r AAuiuMMA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1kx68E-002Ewa-Ib; Wed, 06 Jan 2021 10:34:05 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 99A053013E5; Wed, 6 Jan 2021 11:33:33 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 88C6E2029F4C3; Wed, 6 Jan 2021 11:33:33 +0100 (CET) Date: Wed, 6 Jan 2021 11:33:33 +0100 From: Peter Zijlstra To: Frederic Weisbecker Cc: LKML , "Rafael J . Wysocki" , Ingo Molnar , Fabio Estevam , stable@vger.kernel.org, Thomas Gleixner , "Paul E . McKenney" , Len Brown , Pengutronix Kernel Team , NXP Linux Team , Daniel Lezcano , Shawn Guo , Sascha Hauer Subject: Re: [PATCH 1/4] sched/idle: Fix missing need_resched() check after rcu_idle_enter() Message-ID: References: <20210104152058.36642-1-frederic@kernel.org> <20210104152058.36642-2-frederic@kernel.org> <20210105095503.GF3040@hirez.programming.kicks-ass.net> <20210105125722.GA68490@lothringen> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210105125722.GA68490@lothringen> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 05, 2021 at 01:57:22PM +0100, Frederic Weisbecker wrote: > > Something like the below, combined with a fixup for all callers (which > > the compiler will help us find thanks to __must_check). > > Right, I just need to make sure that the wake up is local as the kthread > awaken can be queued anywhere. But a simple need_resched() check after the > wake up should be fine to get that. Duh, yes. Clearly I'm having startup problems after the holidays ;-)