lockdep/selftests: Fix selftests vs PROVE_RAW_LOCK_NESTING
authorPeter Zijlstra <peterz@infradead.org>
Thu, 17 Jun 2021 18:57:19 +0000 (20:57 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 22 Jun 2021 14:42:08 +0000 (16:42 +0200)
commitc0c2c0dad6a06e0c05e9a52d65f932bd54364c97
tree16360ca59aa6033e6ae6b5de2db9ea19709b4397
parentf8b298cc39f0619544c607eaef09fd0b2afd10f3
lockdep/selftests: Fix selftests vs PROVE_RAW_LOCK_NESTING

When PROVE_RAW_LOCK_NESTING=y many of the selftests FAILED because
HARDIRQ context is out-of-bounds for spinlocks. Instead make the
default hardware context the threaded hardirq context, which preserves
the old locking rules.

The wait-type specific locking selftests will have a non-threaded
HARDIRQ variant.

Fixes: de8f5e4f2dc1 ("lockdep: Introduce wait-type checks")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20210617190313.322096283@infradead.org
lib/locking-selftest.c