]> git.baikalelectronics.ru Git - kernel.git/commit
lockdep/selftest: Add a R-L/L-W test case specific to chain cache behavior
authorBoqun Feng <boqun.feng@gmail.com>
Fri, 7 Aug 2020 07:42:32 +0000 (15:42 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 26 Aug 2020 10:42:06 +0000 (12:42 +0200)
commitfdca35e4b8ecf0b87543dc171f9e7e26d2035ed8
treeaa3051bc538092205afceffe8c9933e4b8da7a1a
parent52113fdd46335110ccff63dd808bceb6626e8c37
lockdep/selftest: Add a R-L/L-W test case specific to chain cache behavior

As our chain cache doesn't differ read/write locks, so even we can
detect a read-lock/lock-write deadlock in check_noncircular(), we can
still be fooled if a read-lock/lock-read case(which is not a deadlock)
comes first.

So introduce this test case to test specific to the chain cache behavior
on detecting recursive read lock related deadlocks.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200807074238.1632519-14-boqun.feng@gmail.com
lib/locking-selftest.c