From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F1BDC433EF for ; Fri, 15 Jul 2022 15:25:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235365AbiGOPZZ (ORCPT ); Fri, 15 Jul 2022 11:25:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235037AbiGOPZX (ORCPT ); Fri, 15 Jul 2022 11:25:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4625E419A1 for ; Fri, 15 Jul 2022 08:25:21 -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 ams.source.kernel.org (Postfix) with ESMTPS id 717C5B82D08 for ; Fri, 15 Jul 2022 15:25:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6BF6C34115; Fri, 15 Jul 2022 15:25:17 +0000 (UTC) Date: Fri, 15 Jul 2022 11:25:16 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: Marco Elver , Petr Mladek , John Ogness , Sergey Senozhatsky , kasan-dev@googlegroups.com, Thomas Gleixner , Johannes Berg , Alexander Potapenko , Dmitry Vyukov , Naresh Kamboju , Peter Zijlstra , Linux Kernel Functional Testing , linux-kernel@vger.kernel.org Subject: Re: [PATCH] printk: Make console tracepoint safe in NMI() context Message-ID: <20220715112516.58e9e5f8@gandalf.local.home> In-Reply-To: <20220715151000.GY1790663@paulmck-ThinkPad-P17-Gen-1> References: <20220715120152.17760-1-pmladek@suse.com> <20220715095156.12a3a0e3@gandalf.local.home> <20220715151000.GY1790663@paulmck-ThinkPad-P17-Gen-1> 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=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 15 Jul 2022 08:10:00 -0700 "Paul E. McKenney" wrote: > So if preemption is enabled at that point in tracing, you really want > to be using rcu_is_watching(). And yes, at that point in tracing, preemption is still enabled if the tracepoint was called with preemption enabled. Thus, we really need to convert that to rcu_is_watching(). -- Steve