diff options
author | Frederic Weisbecker <frederic@kernel.org> | 2022-03-15 18:33:38 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-04-12 03:07:29 +0300 |
commit | bd6c375b92c3f367e184d164e12952e4b9d9fb4f (patch) | |
tree | 3144510fbe7db48d3825b07a74a925184c706d3f /scripts/gdb/linux/utils.py | |
parent | 80dcee695143255261f30c7cc2a041ba413717a4 (diff) | |
download | linux-bd6c375b92c3f367e184d164e12952e4b9d9fb4f.tar.xz |
rcutorture: Call preempt_schedule() through static call/key
The rcutorture test suite sometimess triggers a random scheduler
preemption call while simulating a read delay. Unfortunately, its
direct call to preempt_schedule() bypasses the static call/key filter
used by CONFIG_PREEMPT_DYNAMIC. This breaks the no-preempt assumption
when the dynamic preemption mode is "none".
For example, rcu_blocking_is_gp() is fooled and abbreviates grace periods
when the CPU runs in no-preempt UP mode.
Fix this by making torture_preempt_schedule() call __preempt_schedule(),
which uses the static call/key.
Reported-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions