rcu-tasks: Add comments explaining task_struct strategy
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 24 May 2021 18:26:53 +0000 (11:26 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 20 Jul 2021 20:43:44 +0000 (13:43 -0700)
commit45f4b4a202c03de14e315aaae3d305820cd12221
tree6452dd2f25e25c186e2656c80400946e0be0f026
parent2734d6c1b1a089fb593ef6a23d4b70903526fe0c
rcu-tasks: Add comments explaining task_struct strategy

Accesses to task_struct structures must be either protected by RCU
or by get_task_struct().  Tasks trace RCU uses these in a non-obvious
combination, in conjunction with an IPI handler.  This commit therefore
adds comments explaining this usage.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tasks.h