Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp358419pxt; Wed, 4 Aug 2021 13:06:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh1awwxmEYrdwzkIGRYCxAngBqK1PyaDBvzTkl4sGRlE1a/Plx45gAJlefWqDROMMwbAl0 X-Received: by 2002:a17:906:4b01:: with SMTP id y1mr906488eju.186.1628107575516; Wed, 04 Aug 2021 13:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628107575; cv=none; d=google.com; s=arc-20160816; b=KhEm+JEJYCrVuhc5YveeOnHzTlIq2ElK0b3pjPCPv3K8pGhPEdQ9K6XYP/1jnmKAra JEKVM/bNWbyyyAwcXLPWr9dDkvWrAw5mQseDiWf9ftMuACTPvdaWrLNvvBlTJYcMSwQD TRsyrGvzthdLDH6dx7rMyce/LHMOQLKUwK58zVxBs4TqZvdBl6n7EST+7QD82cltl5b/ j7qiy/vW7RipG9eIhGBJBG/1NpBCFu7NNhvp+RUC29ZngUMYrjqulKJacBNIxuoW57bG M5HnjT8gCc1jSTWWyd/7CINKuES/TmzD19HwwmwZ3OcIb2Esx/J95fFpxA2wG/B5CF4v 4JTQ== 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=j3y1Y4EvEPbO6N+NDMjz01U61QuISwxo7Z/aCbOP5ok=; b=UB9i0KGHJlMyBLrOIBoII7BpxcMUDn6XIlpAiquBlMG1M7mpUV9i1BuzL4ysaAk4q/ o26EM//RUvahl0XDlleCjnqqufZu/e+Qgg8FWqnnfnquD4Hq+6rzzbAE2qRRDVFbdG6k fO6iZzQeS6FOLhzi6pChZK6oVdGRVgbiBy0UmPSdOZtzZdjVhDCSasAayV3c6EFEQBmA BD9dokA1ilNYUJ3Aokm5bpxTWXHOCowXjv3WOYSK6Eusq9iKJMaLatJXCbrVnLaX3zUO aatMe1CAJexqqefCIRv1fS62gx6V1U0Vzk3IoPaVIQcsaaHeLrYbscg/E4OCMRtM7WRY 3Djg== ARC-Authentication-Results: i=1; mx.google.com; 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 i4si3036310ejj.165.2021.08.04.13.05.52; Wed, 04 Aug 2021 13:06:15 -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; 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 S239598AbhHDQsQ (ORCPT + 99 others); Wed, 4 Aug 2021 12:48:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:34824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbhHDQsP (ORCPT ); Wed, 4 Aug 2021 12:48:15 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 132FC60238; Wed, 4 Aug 2021 16:48:01 +0000 (UTC) Date: Wed, 4 Aug 2021 12:47:55 -0400 From: Steven Rostedt To: Sebastian Andrzej Siewior Cc: Jens Axboe , Peter Zijlstra , Daniel Wagner , Thomas Gleixner , LKML , linux-rt-users@vger.kernel.org Subject: Re: [ANNOUNCE] v5.14-rc4-rt4 Message-ID: <20210804124755.21ca7e3d@oasis.local.home> In-Reply-To: <20210804163119.t4c7bkpdk33byxtx@linutronix.de> References: <20210804131731.GG8057@worktop.programming.kicks-ass.net> <4f549344-1040-c677-6a6a-53e243c5f364@kernel.dk> <20210804153308.oasahcxjmcw7vivo@linutronix.de> <20210804154743.niogqvnladdkfgi2@linutronix.de> <7c946918-ae0d-6195-6a78-b019f9bc1fd3@kernel.dk> <20210804121704.1587c41b@oasis.local.home> <20210804162231.rfj5i736lqc4nsio@linutronix.de> <20210804122541.741cf858@oasis.local.home> <20210804163119.t4c7bkpdk33byxtx@linutronix.de> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 Aug 2021 18:31:19 +0200 Sebastian Andrzej Siewior wrote: > CPU-local wake-ups just set NEED_RESCHED and wait for preempt_enable() > to do the magic. Just because the code not perform wake_up() now does > not mean it will not do so in the future. Also it is here as an example > which might be copied somewhere else. Does this mean all local_irq_disable/enable() is audited? What do you do for; local_irq_disable(); [..] wakeup_process(x); /* on local CPU */ [..] local_irq_enable(); And if local_irq_disable() is not used anymore, or seldom, what harm would it be to add a preemption check to that caller? And change local_irq_enable() that is used internally by other atom functions be called __local_irq_enable()? Not to mention that we could just open code that too: if (IS_ENABLED(CONFIG_PREEMPT_RT)) { local_irq_enable(); preempt_check_resched(); } And make it ugly enough that nobody will want to copy it :-) -- Steve