Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp800244pxb; Fri, 22 Apr 2022 11:24:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHO5484gIvWroUuRackYs3akcWlXc4bKb7g5cblqNBkWTAPd5I7lBnbeDP6Bq3PEDenk/y X-Received: by 2002:a65:4c8e:0:b0:3aa:24bf:9e63 with SMTP id m14-20020a654c8e000000b003aa24bf9e63mr5049745pgt.592.1650651866365; Fri, 22 Apr 2022 11:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650651866; cv=none; d=google.com; s=arc-20160816; b=TpdrlddEcyKmWOITRJhjoqqNeOFfNQ/5sAUvOAJFRzmHJml0mecZ2Q9cLRNKqFNo85 K6+X5SYlQIaNHnDnBESjjtSf6QPDBqNZex2s5mp3vrmbZhS0NSKXVmflgFrS+rP1Van2 jAU+AUo6dMH4K2aBoJuPxOfQ3lbXehvS8YDbJeobQT3ZZbX2Ko9wpD1AgZkUClqUfZGp kdb/frHiOEugxj4jdnhDrwgUbNMF8lJHL97xO1WITaWbs0LNENoYl1mYVV9FDUEchme3 PHmbN/8PFvQWJkurblM0zgm7uSHV284nLT3tCC4U460DTh6EMp+I9BLT6BEQrMjNjHV0 W3Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ip3yihkdu464Rg1aQ+Hhqq/709zC0DL2rBGPjoB6eQM=; b=H4xwa2Nxqs4lV1qjRThkneV5m5LNkFF2RmNCB+iglCh090EOyeVJG4kQ/BexuxI3q+ Zc8RAqkxQXyL+qwBl6hOSL6VMk3EB60oBxLro0tWPg0f0jx36RrzbhnlMup/Jow6mgWG bZY91lUMru3RT0G/6XNZsHH2l25itIWRjQoVQvhYmNMggeSKEI0oIhhctST73772scno EmI5VwXJX4pNLpVs7Ag8U+ORYR8yl5jsmDgMjXpswXjujHrZyixkIWhftfGEhkeuhkn3 tkk84ZT18fLcjLudZqVmrffoTtR8GFzU6J/diFxNTX6ZpSreuhXrwdBUCeQGqj5ImIy4 vTUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=htpsv9G8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id il3-20020a17090b164300b001c62fca7148si9816603pjb.170.2022.04.22.11.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:24:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=htpsv9G8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19DAF146EEE; Fri, 22 Apr 2022 10:54:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447819AbiDVNR6 (ORCPT + 99 others); Fri, 22 Apr 2022 09:17:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1447892AbiDVNRz (ORCPT ); Fri, 22 Apr 2022 09:17:55 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08E321158; Fri, 22 Apr 2022 06:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650633303; x=1682169303; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Fk1/9xj+k4tMU+1zg07H5ABLMjz7bV0v7SjqRVxbtx0=; b=htpsv9G8/eGfnGPj2vR0vUqOvIF/7iAMj2lQDsBjLxW2ob0inrKOlh80 IBxdlEV+RfW5YfucprCxMIPnfPbSDo8ygwtye/KejXiiVRYHyokQpPYTx wfEYAFEAnMNPqUcJnfRieYddk4naXHg44nSt7no/mAb4sRRIgXD1XZC8M k9Hq+lhUvirl/REip6dMv1u7N6RmmHwXwnWQsnXBPqCj9R/VRAKnK9YhV I9GLg5j/wxAcaZ9LbhI12dH5M8WFsuQi7MyzIVo5xCt1KMTbY49rDoBoH d66vm9YjtZs9ozU5LQzblHrY5ddZCKR5vmgCZgbdcAsfZtILr1tvrKVwP w==; X-IronPort-AV: E=McAfee;i="6400,9594,10324"; a="264447579" X-IronPort-AV: E=Sophos;i="5.90,281,1643702400"; d="scan'208";a="264447579" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2022 06:15:02 -0700 X-IronPort-AV: E=Sophos;i="5.90,281,1643702400"; d="scan'208";a="577888236" Received: from zq-optiplex-7090.bj.intel.com ([10.238.156.125]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2022 06:15:01 -0700 From: Zqiang To: paulmck@kernel.org, frederic@kernel.org Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rcu: Put panic_on_rcu_stall() after expedited RCU CPU stall warnings Date: Fri, 22 Apr 2022 21:15:18 +0800 Message-Id: <20220422131518.3090060-1-qiang1.zhang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When the expedited RCU CPU stall warning is treated as panic, if it's triggered, the stall info should be printed first and tell us reason, rather than directly panic. Signed-off-by: Zqiang --- kernel/rcu/tree_exp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree_exp.h b/kernel/rcu/tree_exp.h index 571b0a700cce..f05a15b11fa0 100644 --- a/kernel/rcu/tree_exp.h +++ b/kernel/rcu/tree_exp.h @@ -623,7 +623,6 @@ static void synchronize_rcu_expedited_wait(void) return; if (rcu_stall_is_suppressed()) continue; - panic_on_rcu_stall(); trace_rcu_stall_warning(rcu_state.name, TPS("ExpeditedStall")); pr_err("INFO: %s detected expedited stalls on CPUs/tasks: {", rcu_state.name); @@ -671,6 +670,7 @@ static void synchronize_rcu_expedited_wait(void) } } jiffies_stall = 3 * rcu_exp_jiffies_till_stall_check() + 3; + panic_on_rcu_stall(); } } -- 2.25.1