diff options
author | Paul E. McKenney <paulmck@kernel.org> | 2021-07-30 22:17:59 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2021-09-14 02:35:08 +0300 |
commit | cbe0d8d91415c9692fe88191940d98952b6855d9 (patch) | |
tree | fcb1e7ff37a5ab77acc02f2eed22b5f12728e45d /Kconfig | |
parent | 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff) | |
download | linux-cbe0d8d91415c9692fe88191940d98952b6855d9.tar.xz |
rcu-tasks: Wait for trc_read_check_handler() IPIs
Currently, RCU Tasks Trace initializes the trc_n_readers_need_end counter
to the value one, increments it before each trc_read_check_handler()
IPI, then decrements it within trc_read_check_handler() if the target
task was in a quiescent state (or if the target task moved to some other
CPU while the IPI was in flight), complaining if the new value was zero.
The rationale for complaining is that the initial value of one must be
decremented away before zero can be reached, and this decrement has not
yet happened.
Except that trc_read_check_handler() is initiated with an asynchronous
smp_call_function_single(), which might be significantly delayed. This
can result in false-positive complaints about the counter reaching zero.
This commit therefore waits for in-flight IPI handlers to complete before
decrementing away the initial value of one from the trc_n_readers_need_end
counter.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions