Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1163974lqd; Thu, 25 Apr 2024 07:43:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW85bV+lgEAiTKxkZaeMDArIXw0q5L6vYtnl/Z0ey1Nle4JoXVpUrZQuV3YXjQWoCD83bEojC7ue7piDep8fquysjZsZ9zj9d36KTIQBA== X-Google-Smtp-Source: AGHT+IF54vpNOsphw/KXqBSr6tHw8lqmlDk6mJVvZel9RcXuL70OJucdVCg0u44ZKHAo930d/94L X-Received: by 2002:a05:6a21:3295:b0:1aa:5a89:18d7 with SMTP id yt21-20020a056a21329500b001aa5a8918d7mr6865389pzb.19.1714056185592; Thu, 25 Apr 2024 07:43:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714056185; cv=pass; d=google.com; s=arc-20160816; b=tBzag9ySQW/OIYyWF0+Qv3chzx5PCelYgZ0AXVuDkneK5Wa8qAGINepJ3p9TFYXMGT NwLjrgXiNOgy8CQea25lUQm0vnst+W5PKMydApRWOYoh1rdRy3jmcBQ8OUp2/4LZjEtt UMdu50ZAVs9NQKdhqhkfDxRJz8Kawga2GlTjNBeFrwfjbfPhuNznnW17A5zNty1C3mzh kCwnt5xDL1dQT4PkuuQOajb87nlVmi1k3BumKUt+yX90UOkqy96Bme5Kvq7ejLxckxQy bEVgGNafz9hmyttoehyRXdTYLuTRPcqwsizaxhTaeSXXxI/yNZMrasARS990u5aWcQ8p gjAg== 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=r58ewftBhL5ntZZ1/r+PtfGmmxxvgXdKTPX9u9pT3SE=; fh=mlB9HrEPba9NqY8vaO7nQu4v3Ivgen72Da4hKnaxF/k=; b=Y3mYvD0NkmC7OKYiufP9I6rK6CYSNZWpueLxfJ4+k1pfj7l0OXRFX15jtTwkL5Os/Y 4wxu+gk5EwvhduaGFv8iHsvmwHWNY6+wdNX9CkZVyPaQlfXJJ1pUPDm2I323JFabOhP3 IIh3YtSgA+CflB6k0gUEFu80tVY+XRyt+ZjMLLEPhBhEU6BxplS/fR/CY1FbWsxLfw9V CyRAi/+DdVJhQu9kgCrDYBobpgpV0t4V4i7/KV8NE2CDCk7h6uCRQjrf3zldfaP79Cpe wBxLbIJFi9lN62bFocFn9ATn2yCGFUFkzZEJu4U0uy4Z1X8YnkkRO4v/Wn1zivlFJHbW HkgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uq2MEd/V"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id v9-20020a056a00148900b006f38467fbd2si3632612pfu.321.2024.04.25.07.43.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 07:43:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uq2MEd/V"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158682-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 394B1B2672E for ; Thu, 25 Apr 2024 14:20:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2188C14AD2B; Thu, 25 Apr 2024 14:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uq2MEd/V" 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 4925714B07F; Thu, 25 Apr 2024 14:18:44 +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=1714054725; cv=none; b=plSO4qk/OghDzLTwqOWgY+fqrEmY9WcVq/TY02cPzh9TgYrsUBY7YO8NwprEBhj6C1SVZ5Jo9dfF4lhEOK5FAggND+t1TnQDU5R8hu8WxVjQywny+X5F3M0AJzvIP01CrBFRpdQBIUxaISHFYXM6uSriRycssDz74/G02uTh7C0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714054725; c=relaxed/simple; bh=wr/k54/ZbmkJrW0gFVZmsbDqX6q/04QoSGB4f9Qio68=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r/yESSODd4nyMsHXbhOfLMRUsEMhEBNU+edKY775tmBcai7++g7pm/8cPC1DiqRW0p9iVayHz9bN+akKxgAelaTD9cxPhJR/KV2zzqknTvzoEQxt6yJZED0IjmQvGBAX8vSgwNPq61Y9hPXLXGDrBubceDo+Yc5NxXDhv9YMP3U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uq2MEd/V; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D9B9C3277B; Thu, 25 Apr 2024 14:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714054724; bh=wr/k54/ZbmkJrW0gFVZmsbDqX6q/04QoSGB4f9Qio68=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uq2MEd/VbFTsTKhY/bgmCW/Dsfw62uIx7LwnY0NMPiED+g0w52R+vS3XyFRQi6Qsy o4YoaSu+3eQai48eccTaQaeOyT8sYAMU6agb2dXPrGM+PiNkWEwBvaU1eOEgI7xlrW 4KtKcDbR1Rs2wExkTQs7DTHISPF0t+o5tj5e5zPdOJPpcES16Lihw0HOs3tUNk4LJP 1elMI/BQsGh3bWZozn9QTILN29UAJ+lGvCxcf1XOypuGQcUm+i3PG8wktk1Va+PjGO 9XcnYWA4JzhabA5oRTlC3zejvXh3aL/rklavhhEeoBl01iw0I38u8GoyHCzfOBtzXi +E4zMjy6ICdgw== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , "Paul E. McKenney" , Boqun Feng , Joel Fernandes , Neeraj Upadhyay , Uladzislau Rezki , Zqiang , rcu Subject: [PATCH 2/4] rcu/nocb: Fix segcblist state machine stale comments about timers Date: Thu, 25 Apr 2024 16:18:33 +0200 Message-ID: <20240425141835.19776-3-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 (de-)offloading process used to take care about the NOCB timer when it depended on the per-rdp NOCB locking. However this isn't the case anymore for a long while. It can now safely be armed and run during the (de-)offloading process, which doesn't care about it anymore. Update the comments accordingly. Signed-off-by: Frederic Weisbecker --- include/linux/rcu_segcblist.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/linux/rcu_segcblist.h b/include/linux/rcu_segcblist.h index 1e5b4ef167ca..8018045989af 100644 --- a/include/linux/rcu_segcblist.h +++ b/include/linux/rcu_segcblist.h @@ -80,8 +80,7 @@ struct rcu_cblist { * | SEGCBLIST_RCU_CORE | SEGCBLIST_LOCKING | SEGCBLIST_OFFLOADED | * | | * | Callbacks processed by rcu_core() from softirqs or local | - * | rcuc kthread, while holding nocb_lock. Waking up CB and GP kthreads, | - * | allowing nocb_timer to be armed. | + * | rcuc kthread, while holding nocb_lock. Waking up CB and GP kthreads. | * ---------------------------------------------------------------------------- * | * v @@ -183,8 +182,7 @@ struct rcu_cblist { * | SEGCBLIST_RCU_CORE | SEGCBLIST_LOCKING | * | | * | 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. | + * | rcuc kthread, while holding nocb_lock. | * ---------------------------------------------------------------------------- * | * v -- 2.44.0