Commit 0f83cef0 authored by Paul E. McKenney's avatar Paul E. McKenney Committed by Zheng Zengkai
Browse files

rcu-tasks: Make ksoftirqd provide RCU Tasks quiescent states

mainline inclusion
from mainline-v5.14-rc1
commit cf868c2a
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4U05V


CVE: NA

-------------------------------------------------------------------------

Heavy networking load can cause a CPU to execute continuously and
indefinitely within ksoftirqd, in which case there will be no voluntary
task switches and thus no RCU-tasks quiescent states.  This commit
therefore causes the exiting rcu_softirq_qs() to provide an RCU-tasks
quiescent state.

This of course means that __do_softirq() and its callers cannot be
invoked from within a tracing trampoline.

Reported-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
Tested-by: default avatarToke Høiland-Jørgensen <toke@redhat.com>
Reviewed-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Reviewed-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 6c7ab876
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment