]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rcu-tasks: Idle tasks on offline CPUs are in quiescent states
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 22 Nov 2024 08:47:08 +0000 (00:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:50:41 +0000 (19:50 +0100)
commitb661948bac8675e87a020ccca35870b007a31525
tree318f9d259464d71368cae414b65d33f65569ca35
parent7251463f4bd057ecbd2876b9e139f75107670efa
rcu-tasks: Idle tasks on offline CPUs are in quiescent states

commit 5c9a9ca44fda41c5e82f50efced5297a9c19760d upstream.

Any idle task corresponding to an offline CPU is in an RCU Tasks Trace
quiescent state.  This commit causes rcu_tasks_trace_postscan() to ignore
idle tasks for offline CPUs, which it can do safely due to CPU-hotplug
operations being disabled.

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>
Signed-off-by: Krister Johansen <kjlx@templeofstupid.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/rcu/tasks.h