]> Gentwo Git Trees - linux/.git/commit
rcu/tasks: Check processor-ID assumptions
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 2 Aug 2024 00:34:21 +0000 (17:34 -0700)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Wed, 14 Aug 2024 11:18:10 +0000 (16:48 +0530)
commit49f49266ec9d61a4d038cb4ddff4417ba793198f
treefc5c786955ffe428f84154d2369e9a87304bf63e
parentfd70e9f1d85f5323096ad313ba73f5fe3d15ea41
rcu/tasks: Check processor-ID assumptions

The current mapping of smp_processor_id() to a CPU processing Tasks-RCU
callbacks makes some assumptions about layout.  This commit therefore
adds a WARN_ON() to check these assumptions.

[ neeraj.upadhyay: Replace nr_cpu_ids with rcu_task_cpu_ids. ]

Signed-off-by: "Paul E. McKenney" <paulmck@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
kernel/rcu/tasks.h