Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp408847lqb; Tue, 4 Jun 2024 15:29:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGje2P1YYEASEXfzwdNGtQacA4WTEJDof60SY2uSLjM86jyhh2gjebXLVoF4I7+DeN5e03MeRSRUtlu9XTQouTVh3lCULWLppOBhSnXA== X-Google-Smtp-Source: AGHT+IHNo0D8nKZAdfQTo3L4ezjI1TvQQJA1giCwJkJXBFGyQjO2UAhKVrn3KGMFzh1vl5XkTuui X-Received: by 2002:a17:90a:ec11:b0:2ab:eff6:e2ce with SMTP id 98e67ed59e1d1-2c27da3de62mr1051958a91.0.1717540182384; Tue, 04 Jun 2024 15:29:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717540182; cv=pass; d=google.com; s=arc-20160816; b=ux9W8abl2lf7SdlmvWbB437/V+EjAr/hLKqgZmuZvDOToPeS089aRq63SBaP0wg9Fx gv9qPIaxWl+bz0SMacrpPIF5fVlqXM7WbKiWyhET7KqC6Ql25oEWPo/L8nRJeIF8ddnk vMwtfVrkdlSFVYJt8s+Xtb2Uuk8EvSGcmQMxhRcJgALOaLdZqqTgGek1av5JIhIFDJ9B g/wUk1tua6W58q5BFA80VbkSqs6G62/91A6guerR4Fc/ASIh47DVMUeVcdmmj87bXH+9 7TzfAbl1U8asz0TzwqrlHap+HOn1festroGtVFcLG2DbBmU1E/gFILDaK+uM0C69L0YE qzsw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=e8BDXVUkTafmKwUUbrdjOYQjclfy1YO+ZtBXCRwXhTA=; fh=j/6jXqcObt7Pm1W5aZvD4EQwbdi5JXSIgZt68BnsQ8s=; b=R10QC2pk2twglSw+84eeDyf9FAEJzwY1kwYjzXODH6zPQ/OBzUPGi96EZ+kVWRDwqy pBD6XGGSXRQpaprhHW4wWHCvjIS9NWqOdbyO54zzAaZohAXdJ8yr/2fjlvu51H5wPGWy tssVurSCQave0nOStW+hDLoqPpXcRQ7yaqMo6kfvrsIWQvR2lEcgDQ2V+AEHNZ9ify6t PMwwwAkn1WDf/UDVAi179COM62qDHwLIp36iI7P+ZrTHp9SoBhsO7NxaSbXrktUnDq0q KNvCkv8eWSJFbvla8FSNex1jF/XseNAGQV9jipr75gUYKgTSgzZnXYfF0Mu6x/AocwKJ apsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pJYk/7+6"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201480-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2806634cdsi51378a91.50.2024.06.04.15.29.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 15:29:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201480-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="pJYk/7+6"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201480-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201480-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id ED5F1287BDE for ; Tue, 4 Jun 2024 22:28:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E85114D2AE; Tue, 4 Jun 2024 22:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pJYk/7+6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BD4014B09F; Tue, 4 Jun 2024 22:28:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717540107; cv=none; b=B4I9spfXRraAUkBJIZvowqP2f6+kXlg/yU4N/5zNTcUSdFcL+AGWfRdWxP1Zpj2KbfUhFbruXBlfv8rUs+i15ZcyI0CdfPKzcq22Ld6CGJFxDcnfy26zBup1X7rqda6v0b9i7KrzzL3f1uYZ7HOhhS3sbUg0hGN8Xy2Nz6yY+g8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717540107; c=relaxed/simple; bh=L+vh4i7DG4WUW2lk/fFRObt2YALvvoHN6lDNkPzL758=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YkqeMX5KC3uiGdn5EJsT2fju4lo7wmK56HH3rB2ZO2aPQEWOP8SRAQkSjc//xslB27YzMpIhI5rGMbXQlwkwgUhKIqidZjor6KJnZ/bMoWcot9k+4M7Ty/mvEcqhrW7YPRWs9BeF5Z2j6vm0fS/jvQjt75//5ayD2DlFWDMpcns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pJYk/7+6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F0D3C3277B; Tue, 4 Jun 2024 22:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717540107; bh=L+vh4i7DG4WUW2lk/fFRObt2YALvvoHN6lDNkPzL758=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pJYk/7+6d355+dU29WybwVSHg8f9bekAfAqsvjIYDVuC1jWpl4IAQbAI3psN6eoED Cp2KJ3EPKAohcZJBPkzt7PBE6n1dO6YIhJCUoqiaW7sijQzPxy80KHYYlcyjEM1Fr4 ciEprKKOCYUizwz/t/pIB6ifyws64MmaWEHSdoLZRHfyn4G2scMN/NZQLn7x6Iuiqn CLPF4soKeDzvWBsyRYDoTN97ojzT48rjEs4XRC3wL0UgAKOJmNfKsQ7GxqKJixeqNt 1f/EaNcS/4QAN4cvV+TEUFBuoRuOERcjSeEfqXpXVZ1muetQTw9XObGfAUer4jo4Z/ 1wAh4oZ/5YngA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id C01B5CE3ED6; Tue, 4 Jun 2024 15:28:26 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, Frederic Weisbecker , "Paul E . McKenney" Subject: [PATCH rcu 1/4] rcu/nocb: Fix segcblist state machine comments about bypass Date: Tue, 4 Jun 2024 15:28:22 -0700 Message-Id: <20240604222825.2371133-1-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Frederic Weisbecker The parts explaining the bypass lifecycle in (de-)offloading are out of date and/or wrong. Bypass is simply enabled whenever SEGCBLIST_RCU_CORE flag is off. Fix the comments accordingly. Signed-off-by: Frederic Weisbecker Signed-off-by: Paul E. McKenney --- include/linux/rcu_segcblist.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/linux/rcu_segcblist.h b/include/linux/rcu_segcblist.h index 659d13a7ddaaa..1e5b4ef167caa 100644 --- a/include/linux/rcu_segcblist.h +++ b/include/linux/rcu_segcblist.h @@ -141,7 +141,7 @@ struct rcu_cblist { * | SEGCBLIST_KTHREAD_GP | * | | * | CB/GP kthreads handle callbacks holding nocb_lock, local rcu_core() | - * | handles callbacks concurrently. Bypass enqueue is enabled. | + * | handles callbacks concurrently. Bypass enqueue is disabled. | * | Invoke RCU core so we make sure not to preempt it in the middle with | * | leaving some urgent work unattended within a jiffy. | * ---------------------------------------------------------------------------- @@ -154,8 +154,7 @@ struct rcu_cblist { * | SEGCBLIST_KTHREAD_GP | * | | * | CB/GP kthreads and local rcu_core() handle callbacks concurrently | - * | holding nocb_lock. Wake up CB and GP kthreads if necessary. Disable | - * | bypass enqueue. | + * | holding nocb_lock. Wake up CB and GP kthreads if necessary. | * ---------------------------------------------------------------------------- * | * v @@ -185,7 +184,7 @@ struct rcu_cblist { * | | * | Callbacks processed by rcu_core() from softirqs or local | * | rcuc kthread, while holding nocb_lock. Forbid nocb_timer to be armed. | - * | Flush pending nocb_timer. Flush nocb bypass callbacks. | + * | Flush pending nocb_timer. | * ---------------------------------------------------------------------------- * | * v -- 2.40.1