Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4433668pxb; Tue, 2 Nov 2021 09:38:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4OVi3QJTYRV0mNPOsUP6ywHkOEDAPBn88oyyPxObDsK48sgsGUy5oYaeVaGG1PnZlabO0 X-Received: by 2002:a17:906:7182:: with SMTP id h2mr95424ejk.72.1635871134903; Tue, 02 Nov 2021 09:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635871134; cv=none; d=google.com; s=arc-20160816; b=aN+h6cJ64l6Qe45TkNhbL+p7fR9qAWxFNvdAKqZmHsRlSGi4U3rGPqKwRTQ2FNld0t b+rJdaEMbK/LgJis3le7vMLRbzAkhTgp+RFtaUnwFzpYW31hBYO13TPgxPcQs+mj7C4f kYrdoW1msEGZxLRJGxEJDGdnyY/EgjjS90Dm5w3tulFMiUGamWDUQZy7gSdOva7w0EGv 5VaEAqIZN0JXAJmSmx1ks3zYwbWNv7wF9SG+PQDD9EFlkiYVUEoFYzM/RNmn6HJl2a3/ 28fZIL+ONWwVUP8YfS0g6aKN1nnJYFkAck//10hiCAKSgyJ8PNVRL0ew5dggSGyT9JL0 YTCw== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lLm+rZ5eiWXSviLKzMnj7jGAd0jt+D3OvPMRqn6ob70=; b=gFSoqRWN6vCRq/1j75oaSjzLS7FKmozSo7grc6UbK/gQEbq4WtRt21z+gnL9qEc+q9 xuyEoGPWrzPnp4tQVuj3P/aABiCv7qa2J6M9UUiMKqcww/QCVxIsy1AnKWnOAvlzv4wB WjsUZpNn55OKpFEC2+CjwanIBPFQCjdVR3zvXar2eCvYF3UJ3FfdDsC6wfZjZf65z/Ks bjq20gyT8e5fvHcPsLOyHfRPmzTdlFarYql1PW+AV2G4R7VbBZV4p8gXOWuLgODgL7vE K5XQtetQwOaQXhwhrjbxZkNGm3/hQ5FEfSB2yN7oILFncP5GG8CaDoRrvsAOD5Nj2Jej paug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P4SV4aqm; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si36074510ejy.374.2021.11.02.09.38.30; Tue, 02 Nov 2021 09:38:54 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P4SV4aqm; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234845AbhKBQfn (ORCPT + 99 others); Tue, 2 Nov 2021 12:35:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:37268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234848AbhKBQLp (ORCPT ); Tue, 2 Nov 2021 12:11:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6F18160720; Tue, 2 Nov 2021 16:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635869350; bh=IkNuwYiuj6Jty/6VEkW5Do38hdsBLfJh+7EZIKqlk4g=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=P4SV4aqm66MoxBjyYLwkhBVZ7gdXKoqdr4CE+6Us0pZo5JMvBT6pEQ+9MR0/Bv/n4 OpkM+qW8FsJ12eLLDyXwd1k5lyZxQ+ebAdsy7p5PGVoV6j+k+5i5kCmJLwjMiRbLuI blfQ5rUw+PMfYwRLuDCxRS71Xs6tkPqbl83R4YSy0xfDNvuhSnsMf7dlhSoeJoZ+dD vBEaqLwiylqV45mVkuX4/PfYZlfbVgW+tApNEgycOEU/ogl0sLy8boXdnFen+prNo7 LIpjC9oqEAkdTtciixm7caKP55u5pGjSxiPly/JKBqVKEWOqOc2y86LxiBcb+z0AuS 62cbamAlueAaQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 38B775C0248; Tue, 2 Nov 2021 09:09:10 -0700 (PDT) Date: Tue, 2 Nov 2021 09:09:10 -0700 From: "Paul E. McKenney" To: Li Zhijian Cc: dave@stgolabs.net, joel@joelfernandes.org, josh@joshtriplett.org, mathieu.desnoyers@efficios.com, rostedt@goodmis.org, rcu@vger.kernel.org, philip.li@intel.com, lizhijian@cn.fujitsu.com, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/6] rcuscale: alwaly log error message Message-ID: <20211102160910.GJ880162@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20211029094029.22501-1-zhijianx.li@intel.com> <20211029094029.22501-6-zhijianx.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211029094029.22501-6-zhijianx.li@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 29, 2021 at 05:40:28PM +0800, Li Zhijian wrote: > Generally, error message should be logged anyhow. > > Signed-off-by: Li Zhijian And I queued this one, thank you! The last patch also need to be ported to -rcu. Please port it and the other one and resubmit them. Thanx, Paul > --- > kernel/rcu/rcuscale.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/kernel/rcu/rcuscale.c b/kernel/rcu/rcuscale.c > index 2cc34a22a506..5c8449a8827a 100644 > --- a/kernel/rcu/rcuscale.c > +++ b/kernel/rcu/rcuscale.c > @@ -50,8 +50,8 @@ MODULE_AUTHOR("Paul E. McKenney "); > pr_alert("%s" SCALE_FLAG " %s\n", scale_type, s) > #define VERBOSE_SCALEOUT_STRING(s) \ > do { if (verbose) pr_alert("%s" SCALE_FLAG " %s\n", scale_type, s); } while (0) > -#define VERBOSE_SCALEOUT_ERRSTRING(s) \ > - do { if (verbose) pr_alert("%s" SCALE_FLAG "!!! %s\n", scale_type, s); } while (0) > +#define SCALEOUT_ERRSTRING(s) \ > + pr_alert("%s" SCALE_FLAG "!!! %s\n", scale_type, s) > > /* > * The intended use cases for the nreaders and nwriters module parameters > @@ -514,11 +514,11 @@ rcu_scale_cleanup(void) > * during the mid-boot phase, so have to wait till the end. > */ > if (rcu_gp_is_expedited() && !rcu_gp_is_normal() && !gp_exp) > - VERBOSE_SCALEOUT_ERRSTRING("All grace periods expedited, no normal ones to measure!"); > + SCALEOUT_ERRSTRING("All grace periods expedited, no normal ones to measure!"); > if (rcu_gp_is_normal() && gp_exp) > - VERBOSE_SCALEOUT_ERRSTRING("All grace periods normal, no expedited ones to measure!"); > + SCALEOUT_ERRSTRING("All grace periods normal, no expedited ones to measure!"); > if (gp_exp && gp_async) > - VERBOSE_SCALEOUT_ERRSTRING("No expedited async GPs, so went with async!"); > + SCALEOUT_ERRSTRING("No expedited async GPs, so went with async!"); > > if (torture_cleanup_begin()) > return; > @@ -845,7 +845,7 @@ rcu_scale_init(void) > reader_tasks = kcalloc(nrealreaders, sizeof(reader_tasks[0]), > GFP_KERNEL); > if (reader_tasks == NULL) { > - VERBOSE_SCALEOUT_ERRSTRING("out of memory"); > + SCALEOUT_ERRSTRING("out of memory"); > firsterr = -ENOMEM; > goto unwind; > } > @@ -865,7 +865,7 @@ rcu_scale_init(void) > kcalloc(nrealwriters, sizeof(*writer_n_durations), > GFP_KERNEL); > if (!writer_tasks || !writer_durations || !writer_n_durations) { > - VERBOSE_SCALEOUT_ERRSTRING("out of memory"); > + SCALEOUT_ERRSTRING("out of memory"); > firsterr = -ENOMEM; > goto unwind; > } > -- > 2.32.0 >