Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1148336lqd; Thu, 25 Apr 2024 07:19:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzLamOWQOHCvgE0D+7mWY9pcoXyWK5rbJVHmy8H9Yzk8ZuPytS/UlcTDnWsK/m+ApjAILY9L8aslEpqzKzhqtaO6JtTH262JwK0vJoxA== X-Google-Smtp-Source: AGHT+IEcS2bzzg/nw0dp/PYxscJIcjWjYwFRsf110/l1B7nB26V2/GkD4TqQ2onpU8QiwbJleqiI X-Received: by 2002:a05:6402:26d1:b0:572:3bbc:8c74 with SMTP id x17-20020a05640226d100b005723bbc8c74mr3493040edd.4.1714054781805; Thu, 25 Apr 2024 07:19:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714054781; cv=pass; d=google.com; s=arc-20160816; b=TkFojZdvuBeFQuM4OjmSXeZwqHCgLFuWeZVgZPS4WnJV8Uqbze9WaDl4XCmTzEn/xO WmeyWoRlluyE8xxkFyjebyROfJICTvzVT0Ynl7qduUQlFbgKOTGoUU15ffXWj4uf2e7Y 45XkLp73E8Lh7OI9sPidKPFjJt3Fo27+rD3VEsYE9p7c8NayEPXGxu4Tbl/ni53Kcgxh T3cBzHZVt3PsbX+cn6rj42x3c6malTqFAryniDGNKs9uROnRzD/zMHNfUwdP8tZ+MtNS sxoaY0FY9Act14bxfK2ndwoLmI/m3eww1uSDP5EPC66hZgGO9docStm4+y8VkEp5/Lym 1pxg== 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=JqM1Md6X731F2r8qhDes7G1nkPnKzERPf9YFlu5+QxU=; fh=mlB9HrEPba9NqY8vaO7nQu4v3Ivgen72Da4hKnaxF/k=; b=yV6aBRR138Nx19pmT78Sk4UmupEz+qqfAhgm+nvGWHut5RPTr8bXu0G9F2lWF2e7Af tq0RJ63AVIdR8LmRLTiXQhCGfi1IN62UU6j2BhL3fwgN8mq5AvpdpMVm2UtU/OR4OOll GHvdwaRWcXeah2PGarG+gzopYkHDVj+wwATMuFVuLlmpsrUGo58EY4+OmC/RnOmwCGWO yjoMHWPLyQiZhZVPqLumSvRSKUwdJkTQ41NloK3QFintQBi5XRROg8POD9qpvCos+pBc P8fXlDv4B2AceO1CtW5cz6jwhfCjuxaWZITPQ3YuKVND9DBdRGPKrC974F9tG8WFdsr/ GlWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XsBm04ot; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158681-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158681-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u23-20020a50a417000000b00571bdd964besi10182514edb.391.2024.04.25.07.19.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 07:19:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158681-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XsBm04ot; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158681-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158681-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3F0721F23750 for ; Thu, 25 Apr 2024 14:19:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 081AF14AD31; Thu, 25 Apr 2024 14:18:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="XsBm04ot" 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 2CD6E14A638; Thu, 25 Apr 2024 14:18:42 +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=1714054723; cv=none; b=gIETPVrJTrNViUs3Pyx61ujL9/6ZTA4y6DzItTtt3RCJl8evmdrwJuf0CBC5pA5cKuumznJ5yS618CskwngtCkRLgRDfK4bL3dRxYnr4iZwodNEHFK/ovGmL9W6fBkjhBPsKvRSBBR40ceYt+8CdyZ+3Af01iGVLm+iI6R4dq/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714054723; c=relaxed/simple; bh=oWn7dZnPUbJ0NRHYi9j4G6EoVEgpYFIuT/xSiRP9ym0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CCQ0VoFRej3BkxsGqI1C5UJEvDSfWJERQbat8K41mqhgj+UAOiA/R/XXLYeoiduEDj8hJnSnPeCTaIp4SQRdE84jRTasO6Wk0+WzZD6EXcL2Nej87UsKl871YWuQ1Fx4ku7sww6Pg6K5QGW1x53ARMSvVPjhnyMP5ZjtflyXJM4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XsBm04ot; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0F4EC2BD11; Thu, 25 Apr 2024 14:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714054722; bh=oWn7dZnPUbJ0NRHYi9j4G6EoVEgpYFIuT/xSiRP9ym0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XsBm04otJfZFnVGVAw0Qk1SvePe/dQeMx2VnGXtyXvpPSIxjUp7/tkACsct9tpO60 rPvlSxCFbXXsWv0emlN1qWIiY1rbAO1lbqJ1G2HGR4aoH3cCQ14vGZZMxcmMzjWZFg odIQrevGPEEb0/WwUIPOgKWTmwJwsF5Y95ScpOgK6YHk9YK4Fp6L+m8RjP7zy945LI dnUq1F9xCvxl7cx+lyVCeblSRJjJ+dFrcJjXR16V1rDox0/x6BEhE5u784aiGOC+NI qiH/tozt83x8QaKhz64pyQ+ZRBM5dwTuR2i24lMhESEBG6ICgO/Qy7ajKpwnF2Bkx2 5BIwfV2RuyWBw== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , "Paul E. McKenney" , Boqun Feng , Joel Fernandes , Neeraj Upadhyay , Uladzislau Rezki , Zqiang , rcu Subject: [PATCH 1/4] rcu/nocb: Fix segcblist state machine comments about bypass Date: Thu, 25 Apr 2024 16:18:32 +0200 Message-ID: <20240425141835.19776-2-frederic@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240425141835.19776-1-frederic@kernel.org> References: <20240425141835.19776-1-frederic@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 659d13a7ddaa..1e5b4ef167ca 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.44.0