Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp408851lqb; Tue, 4 Jun 2024 15:29:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUp8uGdKyWr5NpN6x/WRQT54glp+ILpcZSj7eFmIxCkVDs45n1PS01dux2FxENPECi/STUb0NQlbTXJMebfXIJRGhxQgiFL2oa7XwVbAw== X-Google-Smtp-Source: AGHT+IHPTQNwxjCDo0CwqwzCgk65Y1Rj4KlyWS8DZfggCOM/+NWFUZ8pKOIWTTa40NIRQTVun0RR X-Received: by 2002:a05:6a20:841b:b0:1af:fe9e:5e43 with SMTP id adf61e73a8af0-1b2b6e5ab8cmr1044419637.11.1717540182819; 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=I/Fx4YqD796vcxfaB3UFmVil6GYPY94T84unWpJb63bXucpxUeECJKvk08Yo3dZGAy jiDw+2XMqaLf1broJM0D24Ml2rUEdyEeYUay96zhv8Xfby0NR0exoqcYFFWMIyxgXB0S pHgQkiO0QOgBxXozRqvnt2fJbnuyizwrQzj+OhTdiksD3lZnSTsqSYG0q5LndfnidxOd qbZuwD303/T20ATskAGOE/UjCQ4tSq9z6GeN+7UvNRSfRR5NEmOAbNOrF0Can0oVwC6n o8giGl5vkAiv+QuOKEGeXpuh1BUDDkAjrFVUHrHq3qk4er7PjbcJBmQkpnvMdmgqTRxv FCkw== 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=VIO6Vyv7xcpfFWHjorNgNKayjJjtaJjjixni88fpIBA=; fh=j/6jXqcObt7Pm1W5aZvD4EQwbdi5JXSIgZt68BnsQ8s=; b=tKrzKfrxrubgEF+PpwjwgmSeiKQ1ZoNIGWQD/44cQ7v3NTjombKdXge6igUHlD590+ fLkJgG3fhxcamTeRwJum9v/L/cgbxkpqd7/GdSXSkdOCKZeaWkBth05N1JAEWkJ5VDzw 2JZOBGIsP9sPBs8qgQWBPg8PbG3KAO/eq9uP68LZF/IsgvSEFOYyyzAN3YLunSnT3l/u obghhJlmMQAUhs95a0tyFnYsip+eIBHZYlnjgvHgh96gOpdq1pORuNto1lKRJb3O4foj U9c3uiAP8HJ4EojiBQ4g4shI+KnrYHKyVVRvGguIhv42hJZc96UO1BaV6Ykl/UWhQ58V Xi4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RyGmyQy6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201481-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201481-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-2c28063a7c3si53878a91.24.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-201481-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=RyGmyQy6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-201481-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201481-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 5E8C9287C39 for ; Tue, 4 Jun 2024 22:28:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EA3B14D2B2; 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="RyGmyQy6" 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 5BCF514B092; 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=NKCs3ehXyea8OO7lAGaJM5hBCUDg+1remJ4ozZ2TvBzq1N/PpAuy+km08jra/e44PWbkPyx9d3NxfXviShYqggc1S/O4QUZdxUy9RoQrXAOj5TdVbPVY9SxRurxRngfGF5UBflhQiSyHQsZ+tp3kKSSKVanGbiEX5SgPi3EX07E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717540107; c=relaxed/simple; bh=JKYIMcssC4nwBM8+/HZJZVbbImM/JBZd6G7JEJefDLE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FJbD5Do3EwRAYsPhBZXnAOciHZWFBdvAq41p2c1Pse3kxNvVVXwxnty4R6uvf7KS7EsiLERj70hI60UdYNPepqxQsdTKqKUu0PM45EaJ344wZpUI8e1wcEmSP9V00/ABrdN50MdJKD63DT8ze4EKFiLWXmFKd4+unlBIDX3wafQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RyGmyQy6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F204C4AF07; 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=JKYIMcssC4nwBM8+/HZJZVbbImM/JBZd6G7JEJefDLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RyGmyQy6m2NU/cTmKq1ElJMKpjHhH5NX74ob/pKuRT4k+AGj0nEDHgGKuoiQQj7Q/ eZCwB0p1swrcSDOiTGovyXPIJTW/xrLPqQEzdQZH+W425JsCd0UmObPA7DmNMGYUbo psvDnTYvJfzIe613VsuaFN7V1c/IXruUm3ic7NH1wvZIOk4kCp8hGPsB8Ktoka7TCb 2w5T2V37dFzkUk1cH731Pjl+Y7gi2jVKJQJPGOJuJY7xqVGltpYztmqQAQghg165PY Sh5+4FnW7nb4fBGOjLGSHlon2wmOESNS3GUnnmbNYO31wBJeMrP8n5NkdOwJqGEW/X smep1QguCuSNA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id C3478CE3F0F; 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 2/4] rcu/nocb: Fix segcblist state machine stale comments about timers Date: Tue, 4 Jun 2024 15:28:23 -0700 Message-Id: <20240604222825.2371133-2-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 (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 Signed-off-by: Paul E. McKenney --- 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 1e5b4ef167caa..8018045989af9 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.40.1