Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2489619rdg; Mon, 16 Oct 2023 06:14:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXG5YV+VOtkRkeCMobybVaLu/T7qQHuAf32el6LgcKLc/zK2BNy1D6LWchnbvoYLYv1WwD X-Received: by 2002:a17:902:e746:b0:1c7:7c2c:f828 with SMTP id p6-20020a170902e74600b001c77c2cf828mr11701844plf.8.1697462093808; Mon, 16 Oct 2023 06:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697462093; cv=none; d=google.com; s=arc-20160816; b=IDXoO9l8zZk30IVVY1B9Dcn7sebTGD50sbvWlNXN6FTV+sC3BuGky5i45Fuh8J4QtN aO+r6TrRa541nXRkjShOhmIrVTFHIuRBYmELVrD2T04OBIrOC2DcHjz8CZDh/dkUazWp WalMzUvsebRclkAlRILocerMOeC7uj1ZN/YdyWYb/lGz+L5ZKQvrHOmJctcK2XaqC1PB 6S0PVfYqV70LaP3yO1ggvMhoqEU3eDKH4YnT9/44hxW2/H8zXNomLhDEiJkyr8QTkirg rZ74YITwCzfalAvQ+UQQYKtffRyaUNlyeEcWqKV+qzBzEvGLC4hMX6C0bezZG2UVcjHT Ze9A== 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; bh=pDeyfdixFLWeGTTJj9xWGDcWpoZbTm5vCFTySxst8bU=; fh=3oUSWWYQ0rMHaNqDlm8j09K7pkfJE062n+5jIRWafQ4=; b=HTITQZz4oIDPI9hoFQuh4M3D9vVyqI8T4bOsi/SN/hy6lku4Oz5DbOCw+lIiZtXzx4 tt8KTOU0OFJIwpqJbRlKG55XE676NhsSvwfRjQNPoZYo7Um5lkWgzA/xmwR2Hpk0g/fP FOGyqqXxXftzlMD/yxwsh8wffO/Lj15Ta5hbf3N1buryPK8jo1whRotjDJ/qc6MyefGR PtWrX3BOUPX4jw4xD3qHVOE6DJMtcEvUxd10ISRkHWM046clNi8oMNnNYeOfK8Eiu6KB HDlV3AmuxjoyzOcAt+68XqZ5H/TteKkCxD/SdAl4jcpPhtFbko+u+pP2JqeyaI5h41mv Uo3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id z6-20020a1709027e8600b001c7345bc01csi10669423pla.450.2023.10.16.06.14.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 06:14:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5E1638067B50; Mon, 16 Oct 2023 06:14:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbjJPNOd (ORCPT + 99 others); Mon, 16 Oct 2023 09:14:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232055AbjJPNOb (ORCPT ); Mon, 16 Oct 2023 09:14:31 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DBB8FF for ; Mon, 16 Oct 2023 06:14:24 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 9F2FA21C1B; Mon, 16 Oct 2023 13:14:22 +0000 (UTC) Received: from suse.cz (pmladek.udp.ovpn2.prg.suse.de [10.100.201.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 288032D114; Mon, 16 Oct 2023 13:14:22 +0000 (UTC) Date: Mon, 16 Oct 2023 15:14:21 +0200 From: Petr Mladek To: John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH printk v2 2/4] printk: Add this_cpu_in_panic() Message-ID: References: <20231013204340.1112036-1-john.ogness@linutronix.de> <20231013204340.1112036-3-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231013204340.1112036-3-john.ogness@linutronix.de> X-Spamd-Bar: ++++++++++++++++++++++ Authentication-Results: smtp-out1.suse.de; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=suse.com (policy=quarantine); spf=fail (smtp-out1.suse.de: domain of pmladek@suse.com does not designate 149.44.160.134 as permitted sender) smtp.mailfrom=pmladek@suse.com X-Rspamd-Server: rspamd2 X-Spamd-Result: default: False [22.87 / 50.00]; ARC_NA(0.00)[]; R_SPF_FAIL(1.00)[-all]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(1.60)[0.798]; MIME_GOOD(-0.10)[text/plain]; RWL_MAILSPIKE_GOOD(0.00)[149.44.160.134:from]; RCPT_COUNT_FIVE(0.00)[5]; DMARC_POLICY_QUARANTINE(1.50)[suse.com : No valid SPF, No valid DKIM,quarantine]; VIOLATED_DIRECT_SPF(3.50)[]; MX_GOOD(-0.01)[]; NEURAL_SPAM_LONG(3.00)[1.000]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_NA(0.20)[]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; BAYES_HAM(-0.23)[72.40%] X-Spam-Score: 22.87 X-Rspamd-Queue-Id: 9F2FA21C1B X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 16 Oct 2023 06:14:51 -0700 (PDT) On Fri 2023-10-13 22:49:38, John Ogness wrote: > There is already panic_in_progress() and other_cpu_in_panic(), > but checking if the current CPU is the panic CPU must still be > open coded. > > Add this_cpu_in_panic() to complete the set. > > Signed-off-by: John Ogness Reviewed-by: Petr Mladek Best Regards, Petr