From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BF00606A325 for ; Tue, 1 Dec 2026 04:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=kHlhat7M; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=i2OV2oiy DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=rxVfbzJ22bFavhMwa3T+/dNizAgPDE9q+u5vIj+aSn0=; b=kHlhat7MuYs1O6 daNiGYPa4ABMbrQpYW/EUo/kQFXurkAiSYxFslTDpUYEgZQtomLpBuQh520MnjAZKGmm6HjHD9oEj uw/Kao8kZmQHBrX5vb9kVp44jS01fhYNd8OypmPAexeC2xembocuezvtDjWFW9ZQn40yFns3plpb0 vqIZTSF2rSi81d5TjD3RNZ3rhgNfrk84kX1YGE+MHW7WMg3mP6Hs1sP6uyWZMlFmZ6X+u+zwOk9ql xPhIVT2WGyt9o1S1HgkhvyZRXCCxmU/JSREbBivioMnG8cIonNBus1tchNrULgC7LztMn2j6BDOU/ l40Kk3/VzYl13cCL0Ohg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYFR5-00000006Yey-2Ls2; Tue, 01 Dec 2026 04:25:47 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYFQq-00000006YU8-317N; Tue, 01 Dec 2026 04:25:32 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 1C4E4618D3; Tue, 1 Dec 2026 04:25:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99EDD1F0089F; Tue, 1 Dec 2026 04:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796099131; bh=rxVfbzJ22bFavhMwa3T+/dNizAgPDE9q+u5vIj+aSn0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=i2OV2oiyvhx2yucg4Lio5yrQJqnIKp8pCyma0Yt2t6rVXxkFhzF6b64UAXtW12Umu tB/B7DqG/yUYZ3WmZG0uf/e5objIUcRzMkO5CYPCR47JVErzSKnbE38h68hjvI/f5G eeobvqUJpnU+kQx7XCI68DHw8Mxo+VHGYbn0arTcuX++0Ih29aCVsL+PwQNgBI/2td 5ywNhtHbJ7ZjM7z45COY689WKtePISkciD48l5ZLhHbWYHON0peAQPCv7Smg3AtHwE 4vG3ESWRTzFfA6k8XwoyIeW0bwky0Qo5wK6wwE2C7uv1a+y7O24KxkCBIhKbKAkoFR fmEMHvDa9Rwmg== From: Song Liu To: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, live-patching@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org Cc: rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, peterz@infradead.org, tglx@kernel.org, frederic@kernel.org, paulmck@kernel.org, catalin.marinas@arm.com, will@kernel.org, maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, ojeda@kernel.org, kernel-team@meta.com, Song Liu Subject: [PATCH v3 11/22] rcu: Mark the Tiny RCU rcu_is_watching() notrace Date: Mon, 30 Nov 2026 20:21:50 -0800 Message-ID: <20261201042201.3199928-12-song@kernel.org> X-Mailer: git-send-email 2.53.1 In-Reply-To: <20261201042201.3199928-1-song@kernel.org> References: <20261201042201.3199928-1-song@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 ftrace_test_recursion_trylock() calls rcu_is_watching() before it has taken the recursion lock. The Tree RCU version is a notrace function, but the Tiny RCU version is a plain inline function. An out-of-line copy of it is untraced only because inline implies notrace. Mark it notrace explicitly. No functional change. Assisted-by: Claude:claude-opus-5 Signed-off-by: Song Liu --- include/linux/rcutiny.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h index e56ded733b1b..38a3427de0c7 100644 --- a/include/linux/rcutiny.h +++ b/include/linux/rcutiny.h @@ -123,7 +123,7 @@ static inline void rcu_preempt_deferred_qs(struct task_struct *t) { } void rcu_scheduler_starting(void); static inline void rcu_end_inkernel_boot(void) { } static inline bool rcu_inkernel_boot_has_ended(void) { return true; } -static inline bool rcu_is_watching(void) { return true; } +static inline bool notrace rcu_is_watching(void) { return true; } static inline void rcu_momentary_eqs(void) { } /* Avoid RCU read-side critical sections leaking across. */ -- 2.53.1-Meta