Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp621809iog; Fri, 17 Jun 2022 09:54:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1voLOPluJxHLip6289w0m+ivhdpNSIw6D8es3u64QwvPcwfX7D4XUUuS08rYtYazUo/wy+o X-Received: by 2002:a17:90b:3701:b0:1ea:9f82:59ef with SMTP id mg1-20020a17090b370100b001ea9f8259efmr11642334pjb.239.1655484851213; Fri, 17 Jun 2022 09:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655484851; cv=none; d=google.com; s=arc-20160816; b=VpTqE4nHVUScN5CUP2RH6tbuezf/OUPc521h4Sfrsjnpi9x5q7tio+75rxikgKTV1H cAV4d17eVsefUP3TAfPXLtoeccjbrVdOmhkpFYJ5lpQDH3DMMDCcoakpkAdGrHNVNubF +RsN1WOqN//mPzibi28N8w5UqDW9YLE/DAD/4z6MWI8wvhyN9MBOpNQ6q1idP2ybyron y4VL9ObW5+hjx7S7zssf39LoK/tj0ToVe4Y0vVZFxLdeWh5R09odRw/Mr15NHL/28b+9 3Ktr85CrwX51Sml/+jHze0Dj2I3TNCyMubn6cASjUp/2yVIK5l4A9jSAFbEzBzpMuAY7 wkOQ== 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=xCINOIL6PuDK/JjtIbEwMg12oIUj00p7phkG8OtzAVU=; b=gef9KgOKAYR7KmVHFQ1j5QkdRjGCLEN1KO9h34bQeuJ5QOHR+I94blIugI2lsSCA1R HUfAP0x908XKvZdydwq4+xYcxr+BU3wL7Cd0KwjJlxmn5gxSpePXiFOyTUvQiWmdIALU aSdpt5LqscE90G0DH3/MVyNjUa13tCURkmW40L/fgsnX9JMHrcPx4wxk0+BJM1EY30Nk sYmiVTmbsW+zMTD+AbqjuSpxY6ZaWDu0KyVH+/TsNCFqvMMNufLux4EMSn+EK14ToIMg rWcbMpnDNTGGCaHxY0WABGLOzaA78+UBeTo5QBSEQ41rgk3I076fBcZxC26zgCPyXJD4 shOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FQnkOUBR; 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 a37-20020a631a65000000b004051796ea8asi1174931pgm.473.2022.06.17.09.53.58; Fri, 17 Jun 2022 09:54:11 -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=FQnkOUBR; 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 S1382581AbiFQQua (ORCPT + 99 others); Fri, 17 Jun 2022 12:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382246AbiFQQuP (ORCPT ); Fri, 17 Jun 2022 12:50:15 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E95F5402F; Fri, 17 Jun 2022 09:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655484574; x=1687020574; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=txJBSEOHEOVo7LI9mqLJJ279WhRXUuWnU6vzP4vmFlQ=; b=FQnkOUBRAENKxpXUgGpITPPQsarABb/nDuAZzbRCxFz7EQqT9K05uDXD C767efuPTLVs+DfHzKGLgmb91gI3vwDUHrBCKnNidlG6Y2Duojgbzy4+U PsXzOuJiepb3YvNANSYyEZO4DwTPt4JqXP025MSWGLDbKyxs3Qv+MXN9v AYtMZQrXVvdkSbYVQCG7A2LO1uW+xrqI2MO5N8IoVEcqQxEjfRD9HErjJ /zS+eEXkiWWBqz2WU3vyYpUb5ISEqI3OVb7K7GfnfLuxdi09stEzCBHrS WHGI7daKyvT4uzm01wkrvQJUL3fguVdxY+6qRDv0wR8ssi6NiUdhw6XBX w==; X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="277056288" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="277056288" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jun 2022 07:15:37 -0700 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="642045257" Received: from zq-optiplex-7090.bj.intel.com ([10.238.156.125]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jun 2022 07:15:36 -0700 From: Zqiang To: paulmck@kernel.org, frederic@kernel.org Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] rcu/nocb: Correct output rcuog/rcuop kthreads information Date: Fri, 17 Jun 2022 22:15:19 +0800 Message-Id: <20220617141519.1677119-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=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 This commit make rcuog and rcuop thread information output in the correct location. Signed-off-by: Zqiang --- v1->v2: Only change commit information, the v1 is [PATCH] rcu: Fix incorrect judgment condition in show_rcu_nocb_state(). kernel/rcu/tree_nocb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/rcu/tree_nocb.h b/kernel/rcu/tree_nocb.h index a8f574d8850d..f20aec4f4394 100644 --- a/kernel/rcu/tree_nocb.h +++ b/kernel/rcu/tree_nocb.h @@ -1452,8 +1452,8 @@ static void show_rcu_nocb_gp_state(struct rcu_data *rdp) (long)rdp->nocb_gp_seq, rnp->grplo, rnp->grphi, READ_ONCE(rdp->nocb_gp_loops), rdp->nocb_gp_kthread ? task_state_to_char(rdp->nocb_gp_kthread) : '.', - rdp->nocb_cb_kthread ? (int)task_cpu(rdp->nocb_gp_kthread) : -1, - show_rcu_should_be_on_cpu(rdp->nocb_cb_kthread)); + rdp->nocb_gp_kthread ? (int)task_cpu(rdp->nocb_gp_kthread) : -1, + show_rcu_should_be_on_cpu(rdp->nocb_gp_kthread)); } /* Dump out nocb kthread state for the specified rcu_data structure. */ @@ -1497,7 +1497,7 @@ static void show_rcu_nocb_state(struct rcu_data *rdp) ".B"[!!rcu_cblist_n_cbs(&rdp->nocb_bypass)], rcu_segcblist_n_cbs(&rdp->cblist), rdp->nocb_cb_kthread ? task_state_to_char(rdp->nocb_cb_kthread) : '.', - rdp->nocb_cb_kthread ? (int)task_cpu(rdp->nocb_gp_kthread) : -1, + rdp->nocb_cb_kthread ? (int)task_cpu(rdp->nocb_cb_kthread) : -1, show_rcu_should_be_on_cpu(rdp->nocb_cb_kthread)); /* It is OK for GP kthreads to have GP state. */ -- 2.25.1