]> www.infradead.org Git - users/willy/xarray.git/commit
lockdep/selftest: Add wait context selftests
authorBoqun Feng <boqun.feng@gmail.com>
Tue, 8 Dec 2020 10:31:12 +0000 (18:31 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 14 Jan 2021 10:20:16 +0000 (11:20 +0100)
commit9271a40d2a1429113160ccc4c16150921600bcc1
treedd13f92fe9e396ab33b06b7406cb48b2a1cf0cb6
parente71ba9452f0b5b2e8dc8aa5445198cd9214a6a62
lockdep/selftest: Add wait context selftests

These tests are added for two purposes:

* Test the implementation of wait context checks and related
annotations.

* Semi-document the rules for wait context nesting when
PROVE_RAW_LOCK_NESTING=y.

The test cases are only avaible for PROVE_RAW_LOCK_NESTING=y, as wait
context checking makes more sense for that configuration.

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