Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3517893ioo; Wed, 25 May 2022 02:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj+vYgnIzHTMxKXq0kLjPt0jbqMkEShJaC5I5uIKH2RRkiJiDGeRSzDigfzhtXQnT+c9h3 X-Received: by 2002:a05:6a00:cc5:b0:518:a5e6:731e with SMTP id b5-20020a056a000cc500b00518a5e6731emr13393477pfv.19.1653470590079; Wed, 25 May 2022 02:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653470590; cv=none; d=google.com; s=arc-20160816; b=RwZuKn1IlA3tVlyAnQgItFA+i/6R6v0vPfwSsfxYSWbvLPWjUaBBz3a5TUOoJb1BqG pUG8ffENDc5k6ebHZfJfpKzf6DgAOL8w476M6w4Ox8Ne1l3wy5hqKjn1g9+Vt3tvybmW xc7ZtE0VzB39DHq7vctGT+wfKB/KLpMPy76KRE6vcpcgBYDGEhwgGjrbv8CU2NApsxJ9 LeO/PY9toWirfK/ek8Yj29TBuKeKSLZkaQCsvTb8AXsipfRmpM27l3/EyO1gMovE2Jw5 +fori+Qrg9O/NpRLAgvNMP4y0T0tbrz1Lu2NKgBa7sBj/UJDdR500YBNdZRUmy1DACZ4 JehQ== 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=fU/pgdUVIXdVrJNwhW+Jvv5hOGWHG+PxYi/qRUY5y1g=; b=B1VvKlx2u+tFrpfhUvmyVIqRrI+sSEzv8w/h1K+c6gbvzfrzXUJwvigjRrS9kqxTtF m1S8/iwEA5YZgTIOe3Uflq/iuKkhkXKX9Be4wKiqaAoQ+hpLXH8eYmj2h8SKdoaZqjVY BPRyerqyqvgh3ihOcmlTEPAn3HIYA6LCY7G6RrfKDeDnVsP5kuFFbX7BlR/hMf+D1BYf G5VF7mikROqZ8cH8kGVtvH6G/L19aR8yRPsi4QC1/RzJou9DN57qMF9H2mqhMFjid3qk RrvVxQfRwEyrllYBj1UVzUoztFJvVlILboQfXz1cbNwYlpv5mQqgCNX8/fRo6DQSlsaA 28kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XbVbWFDU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a056a000a8800b005180d1a94e9si22831951pfl.287.2022.05.25.02.22.48; Wed, 25 May 2022 02:23:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=XbVbWFDU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234339AbiEYEpK (ORCPT + 99 others); Wed, 25 May 2022 00:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbiEYEpJ (ORCPT ); Wed, 25 May 2022 00:45:09 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFC3D6CAB2; Tue, 24 May 2022 21:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1653453907; x=1684989907; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wLVrb2mDPuymkjNcS0m02nBtnQXINysoxGjT80/gozg=; b=XbVbWFDUYtQrscKCKwbsO00FiD4gEy6iVBfYYEOJhEgtrgn1hw7dFwuN aKInIG/pyAktmBIK43XAaDW4YQqdZnwlWlbuIY7bAHLW6EVpbCNdgqzYZ 7pCxkW7eY9CdJ20SDVCjlFk2Wq5QuhPt5jiVItEfurVSlNAyaXo/NJdvx 4XTkZxbXB77vZTM2u1QHGUSKP/BzSYX2/duh+riBeJ9lHrBN0O6aYZTTK y5yKTMpkwZ5PLTa+jNdsmEGDUSBD/j2cSl6C+mGSW/FGXrxZdVyul/oR8 g2y2IvxW6mTvkfB/yxZQXOnJy3YZLCzKh2z+Hapg4m4pBJFnX6WKVVlem g==; X-IronPort-AV: E=McAfee;i="6400,9594,10357"; a="273442996" X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="273442996" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2022 21:45:07 -0700 X-IronPort-AV: E=Sophos;i="5.91,250,1647327600"; d="scan'208";a="745519219" Received: from zq-optiplex-7090.bj.intel.com ([10.238.156.125]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 May 2022 21:45:05 -0700 From: Zqiang To: paulmck@kernel.org, frederic@kernel.org Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rcu: Add rnp->expmask output to show_rcu_gp_kthreads() Date: Wed, 25 May 2022 12:45:03 +0800 Message-Id: <20220525044503.2083630-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=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Currently, for expedited rcu we only check 'rnp->exp_tasks', however the 'rnp->exp_tasks' are not always exist for expedited grace period that not end. this commit add 'rnp->expmask' condition. Signed-off-by: Zqiang --- kernel/rcu/tree_stall.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/rcu/tree_stall.h b/kernel/rcu/tree_stall.h index 2464b0eccfd0..5c4df855f2ac 100644 --- a/kernel/rcu/tree_stall.h +++ b/kernel/rcu/tree_stall.h @@ -865,13 +865,15 @@ void show_rcu_gp_kthreads(void) rcu_for_each_node_breadth_first(rnp) { if (ULONG_CMP_GE(READ_ONCE(rcu_state.gp_seq), READ_ONCE(rnp->gp_seq_needed)) && !data_race(READ_ONCE(rnp->qsmask)) && !data_race(READ_ONCE(rnp->boost_tasks)) && - !data_race(READ_ONCE(rnp->exp_tasks)) && !data_race(READ_ONCE(rnp->gp_tasks))) + !data_race(READ_ONCE(rnp->expmask)) && !data_race(READ_ONCE(rnp->exp_tasks)) && + !data_race(READ_ONCE(rnp->gp_tasks))) continue; - pr_info("\trcu_node %d:%d ->gp_seq %ld ->gp_seq_needed %ld ->qsmask %#lx %c%c%c%c ->n_boosts %ld\n", + pr_info("\trcu_node %d:%d ->gp_seq %ld ->gp_seq_needed %ld ->qsmask %#lx ->expmask %#lx %c%c%c%c ->n_boosts %ld\n", rnp->grplo, rnp->grphi, (long)data_race(READ_ONCE(rnp->gp_seq)), (long)data_race(READ_ONCE(rnp->gp_seq_needed)), data_race(READ_ONCE(rnp->qsmask)), + data_race(READ_ONCE(rnp->expmask)), ".b"[!!data_race(READ_ONCE(rnp->boost_kthread_task))], ".B"[!!data_race(READ_ONCE(rnp->boost_tasks))], ".E"[!!data_race(READ_ONCE(rnp->exp_tasks))], -- 2.25.1