Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4359782pxb; Tue, 25 Jan 2022 08:45:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5NThJqHhrB1BM8IBl9PiuAtgGWCbsZQWPOJNUx3BqFPKxpogavrKqNFrF7M27bIjADgHP X-Received: by 2002:a05:6402:1753:: with SMTP id v19mr21056491edx.235.1643129125162; Tue, 25 Jan 2022 08:45:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643129125; cv=none; d=google.com; s=arc-20160816; b=kQ140e4w877KyFWpBBAl24n1RHzXsK1Y1zZKrvUAnRbmJL85XfhfX5E2AVWDzTpf8C xGCk3TOYgFix+CB/4rUPeMkihh/0YxeRy+uanEGQwKA2ZtT5CyFNzPwQCW+kzvqeaQYz hz+KUgud+6I+pc9XcnT7/8NLAS1UAuyT+c/o+4KU9wfHwOG1zoPXwhwtO7CgPLD05FW5 O29mYjoHx3tWjhM9YEj0ETZpVAdAmfCp7+tXPrjGvaI1m3i/9R5YKVWgZmdVRsRijVbY d/eqmuI1YwxubKY3U9Dka4EpCIGo8PT1pxsLwLZnYOEMTnifecXkqS3Yuc00hj1wiUQQ NM1w== 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=QoCmbL6yF8nAeIRzqFCzh43LMHBbGGNszo61Ae1SiqY=; b=shRxJ71SA48rV3FS1ObJ8eHiPbUwhXUkPFItm9v4th83O6SSs3noBUOKNsUNDyQa8F iu2WN72pZnj1y4CRhKyWd4U3KvkVT48gcev5O01tmgjtszwSE30+yfBKtcfDShQWKBYt ITI46PdB1sjFih8D0vaa5Ux6JKdARaToFdFqIqNVLDHtvih2jNRujSvo9LmMGsLBhKyJ r3QezZVdXRtlVxkArAWP2LP04Ur2hylgNUB5va0G7is3iGHE2xNgRtp3DPf3iwqsV1tL gV/zM6k2sKfXLvgdwTiJkXtiRhD/4x/6+MJfK0sSHwx5/4PwwSvQkUgVi+seVYv5zLki 8Pew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=g8O6QNd7; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt38si2078918ejc.446.2022.01.25.08.44.59; Tue, 25 Jan 2022 08:45:25 -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=@suse.com header.s=susede1 header.b=g8O6QNd7; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382233AbiAYL4D (ORCPT + 99 others); Tue, 25 Jan 2022 06:56:03 -0500 Received: from smtp-out1.suse.de ([195.135.220.28]:58802 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386228AbiAYLsa (ORCPT ); Tue, 25 Jan 2022 06:48:30 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 86C02212C7; Tue, 25 Jan 2022 11:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1643111303; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QoCmbL6yF8nAeIRzqFCzh43LMHBbGGNszo61Ae1SiqY=; b=g8O6QNd7mPHllF8xeb65UeuukiV1733Krha7YsYyqa/OErZgYtNRtqcRIWolUqs3g7nlYv cQ5KZnilrRbk4tVuzmF+ko+wUFV9aUSOBBgIwc9R6ySgJ56s9vi2csE3U0oE9HjktEY30e WC7pgjwpVB0ZEzIaJ9XDCavCkVaxUcQ= Received: from suse.cz (unknown [10.100.216.66]) (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 34836A3B81; Tue, 25 Jan 2022 11:48:23 +0000 (UTC) Date: Tue, 25 Jan 2022 12:48:22 +0100 From: Petr Mladek To: Stephen Brennan Cc: Sergey Senozhatsky , Steven Rostedt , John Ogness , Sergey Senozhatsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] panic: Add panic_in_progress helper Message-ID: References: <20220121190222.572694-1-stephen.s.brennan@oracle.com> <20220121190222.572694-2-stephen.s.brennan@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220121190222.572694-2-stephen.s.brennan@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 2022-01-21 11:02:19, Stephen Brennan wrote: Please, add explanation why the new helper is added. It will be used in printk code to reduce risk of deadlocks during panic(). > Suggested-by: Petr Mladek > Signed-off-by: Stephen Brennan > --- > We cannot define a static inline without including linux/atomic.h, so > I just added a macro for convenience in later patches. Since macros were > the only option, I didn't include a helper for > panic_in_progress_different_cpu(). What is the exact problem with including atomic.h and using static inline, please? IMHO, the define is not a real solution. The macro won't be usable without including atomic.h. So, it would work only by chance. But it is possible that I miss something. Best Regards, Petr