]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 25 May 2021 00:21:30 +0000 (17:21 -0700)
commit633d6c9e94a26eb382a236cc024b44a27ddbaf23
tree16aa7209c3488137a01ea63bd0efafb5b56ec38e
parent96118229dae850c89f18f205865e3bb08e1d8b3c
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