summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/dirty_log_perf_test.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2022-05-17 12:16:14 +0300
committerPeter Zijlstra <peterz@infradead.org>2022-06-13 11:29:57 +0300
commit4051a81774d6d8e28192742c26999d6f29bc0e68 (patch)
treed51d31554aa2803d1c0c793006aa50eb96f71e50 /tools/testing/selftests/kvm/dirty_log_perf_test.c
parentb13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3 (diff)
downloadlinux-4051a81774d6d8e28192742c26999d6f29bc0e68.tar.xz
locking/lockdep: Use sched_clock() for random numbers
Since the rewrote of prandom_u32(), in the commit mentioned below, the function uses sleeping locks which extracing random numbers and filling the batch. This breaks lockdep on PREEMPT_RT because lock_pin_lock() disables interrupts while calling __lock_pin_lock(). This can't be moved earlier because the main user of the function (rq_pin_lock()) invokes that function after disabling interrupts in order to acquire the lock. The cookie does not require random numbers as its goal is to provide a random value in order to notice unexpected "unlock + lock" sites. Use sched_clock() to provide random numbers. Fixes: a0103f4d86f88 ("random32: use real rng for non-deterministic randomness") Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/YoNn3pTkm5+QzE5k@linutronix.de
Diffstat (limited to 'tools/testing/selftests/kvm/dirty_log_perf_test.c')
0 files changed, 0 insertions, 0 deletions