OSDN Git Service

rcu: React to callback overload by boosting RCU readers
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 7 Nov 2019 09:10:55 +0000 (01:10 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 21 Feb 2020 00:00:20 +0000 (16:00 -0800)
commit8c14263d351b4766a040346ee917b8d81583a460
treeba5df3444de4873f783fa9a9a86da6a666e50a3f
parentb2b00ddf193bf83dc561d965c67b18eb54ebcd83
rcu: React to callback overload by boosting RCU readers

RCU priority boosting currently is not applied until the grace period
is at least 250 milliseconds old (or the number of milliseconds specified
by the CONFIG_RCU_BOOST_DELAY Kconfig option).  Although this has worked
well, it can result in OOM under conditions of RCU callback flooding.
One can argue that the real-time systems using RCU priority boosting
should carefully avoid RCU callback flooding, but one can just as well
argue that an OOM is a rather obnoxious error message.

This commit therefore disables the RCU priority boosting delay when
there are excessive numbers of callbacks queued.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_plugin.h