]> git.baikalelectronics.ru Git - kernel.git/commit
rcu-tasks: Make RCU Tasks Trace stall warning handle idle offline tasks
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 25 May 2022 16:49:26 +0000 (09:49 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 20 Jun 2022 16:22:28 +0000 (09:22 -0700)
commitbdfc547d7b7dae4d7055fe4762766f649e951181
tree6c57295b118e5be4fcceb97ff4eaa2bd755d90da
parent3b2578ed2cd7d9a7f96b2a0ee5fd2a9c79e12bca
rcu-tasks: Make RCU Tasks Trace stall warning handle idle offline tasks

When a CPU is offline, its idle task can appear to be running, but it
cannot be doing anything while CPU-hotplug operations are excluded.
This commit takes advantage of that fact by making trc_check_slow_task()
check for task_curr(t) && cpu_online(task_cpu(t)), and recording
full information in that case.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.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