diff options
author | Boqun Feng <[email protected]> | 2020-08-07 15:42:37 +0800 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-08-26 12:42:07 +0200 |
commit | ad56450db86413ff911eb527b5a49e04a4345e61 (patch) | |
tree | fed91c9cc78759489711e694c92b7e27c79ae12b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 108dc42ed3507fe06214d51ab15fca7771df8bbd (diff) |
locking/selftest: Add test cases for queued_read_lock()
Add two self test cases for the following case:
P0: P1: P2:
<in irq handler>
spin_lock_irq(&slock) read_lock(&rwlock)
write_lock_irq(&rwlock)
read_lock(&rwlock) spin_lock(&slock)
, which is a deadlock, as the read_lock() on P0 cannot get the lock
because of the fairness.
P0: P1: P2:
<in irq handler>
spin_lock(&slock) read_lock(&rwlock)
write_lock(&rwlock)
read_lock(&rwlock) spin_lock_irq(&slock)
, which is not a deadlock, as the read_lock() on P0 can get the lock
because it could use the unfair fastpass.
Signed-off-by: Boqun Feng <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions