]> git.baikalelectronics.ru Git - kernel.git/commit
rcu-tasks: Untrack blocked RCU Tasks Trace at reader end
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 17 May 2022 22:01:14 +0000 (15:01 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 20 Jun 2022 16:22:28 +0000 (09:22 -0700)
commitc362bd16be96abb31746c75a0d5e40fbcdc7d796
treec6611b1c1ca1e00dc366af2e233d9a3c721e4518
parent74b0795122c3ea45d57a6b54ef6c85ad6f2ecdcd
rcu-tasks: Untrack blocked RCU Tasks Trace at reader end

This commit causes rcu_read_unlock_trace() to check for the current
task being on a per-CPU list within the rcu_tasks_percpu structure,
and removes it from that list if so.  This has the effect of curtailing
tracking of a task that blocked within an RCU Tasks Trace read-side
critical section once it exits that critical section.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Neeraj Upadhyay <quic_neeraju@quicinc.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: KP Singh <kpsingh@kernel.org>
kernel/rcu/tasks.h