From nobody Thu Oct 2 03:28:39 2025 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 A926A22A7F1; Tue, 23 Sep 2025 14:21: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=1758637302; cv=none; b=r/YLGEYnHofrgsQLyM5TlIMYKOjFSToIAiZjFgqNFRoiAhhkvcjY2LOPvh8Qk9VsL6lNpOBg7WHA4kyOLWD2/W6eiLULVi4+SyxR+P0A8TxvbmoARpgirn9o0VIhylZUnUet6b0oT281EqYSDyFtbegmwgHYA1w13vbvTlq4vlU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758637302; c=relaxed/simple; bh=xsMVIazrHCxbo8kiV/02R0kxVkmtf66xKO9RsbF5hME=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=b2r2fHYTi+IBDAOn2OHdzkzNx9Y8F9y1vQJabXU8fty4cJrI1r9bZF0Q348uZ11OodDPfHH9qt3iZTzoEICVEwf8wke04aGl3D15L9fk1hQXgK6EQ46F6dHofrMuI5F43HOZb8MZrrMnz5KjdUlDB5ipXar+M+7Gc9P5CM5vGVw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kA0ivHQN; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kA0ivHQN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFCCBC116D0; Tue, 23 Sep 2025 14:21:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1758637302; bh=xsMVIazrHCxbo8kiV/02R0kxVkmtf66xKO9RsbF5hME=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kA0ivHQNN+qep6DSP67RPLXjz/jEtlKdCPLlxaD6viNJUK68p6t45r78aSrTs97pH R6NU/YnAMBNjhb0C3vydjuGb+/Du7zOFF68ywSOs8XllVQs9bDNHbw4dJRxREMIYf5 vCzfMBeexuz+5uagaJT8Pobh05vp7XRiuF+MKzrsh7iRSRai4Elx7trxZeyzKU/hKm g7eD7FplcufHfRwvOhn+TXvSqYp1/tvsbANIFIaE7qdARjdGn6yvtYg2Eq0YugrkJn WIXu1KqwDkRwBQ6J/WooW2xSh16bD+YQrAT5qx9TC+D7l/c12UTu2ruyN0gh/CGOJh DKG4daNytfSsw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id BC08ECE0F21; Tue, 23 Sep 2025 07:20:37 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Andrii Nakryiko , Alexei Starovoitov , Peter Zijlstra , bpf@vger.kernel.org Subject: [PATCH 03/34] rcu: Remove ->trc_blkd_node from task_struct Date: Tue, 23 Sep 2025 07:20:05 -0700 Message-Id: <20250923142036.112290-3-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <580ea2de-799a-4ddc-bde9-c16f3fb1e6e7@paulmck-laptop> References: <580ea2de-799a-4ddc-bde9-c16f3fb1e6e7@paulmck-laptop> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Now that RCU Tasks Trace has been re-implemented in terms of SRCU-fast, the ->trc_blkd_node task_struct field is only initialized, and never actually used. This commit therefore removes it. Signed-off-by: Paul E. McKenney Cc: Andrii Nakryiko Cc: Alexei Starovoitov Cc: Peter Zijlstra Cc: --- include/linux/sched.h | 1 - init/init_task.c | 1 - kernel/fork.c | 1 - 3 files changed, 3 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 47bd062b21c2bc..3f840cfa941132 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -942,7 +942,6 @@ struct task_struct { struct srcu_ctr __percpu *trc_reader_scp; union rcu_special trc_reader_special; struct list_head trc_holdout_list; - struct list_head trc_blkd_node; #endif /* #ifdef CONFIG_TASKS_TRACE_RCU */ =20 struct sched_info sched_info; diff --git a/init/init_task.c b/init/init_task.c index e557f622bd9061..dd6226251689c8 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -167,7 +167,6 @@ struct task_struct init_task __aligned(L1_CACHE_BYTES) = =3D { .trc_reader_nesting =3D 0, .trc_reader_special.s =3D 0, .trc_holdout_list =3D LIST_HEAD_INIT(init_task.trc_holdout_list), - .trc_blkd_node =3D LIST_HEAD_INIT(init_task.trc_blkd_node), #endif #ifdef CONFIG_CPUSETS .mems_allowed_seq =3D SEQCNT_SPINLOCK_ZERO(init_task.mems_allowed_seq, diff --git a/kernel/fork.c b/kernel/fork.c index af673856499dca..69d34c123b9e5f 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1782,7 +1782,6 @@ static inline void rcu_copy_process(struct task_struc= t *p) p->trc_reader_nesting =3D 0; p->trc_reader_special.s =3D 0; INIT_LIST_HEAD(&p->trc_holdout_list); - INIT_LIST_HEAD(&p->trc_blkd_node); #endif /* #ifdef CONFIG_TASKS_TRACE_RCU */ } =20 --=20 2.40.1