summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2007-11-24 04:32:32 +0000
committerattilio <attilio@FreeBSD.org>2007-11-24 04:32:32 +0000
commit7d4ec70696e3e9f686cee8f071d9e21711c3d94e (patch)
tree3dd6340f0bf3a8accbd2c3ee05631cce73165f09 /sys/kern/subr_witness.c
parentc61d48e731f72a04c3b15745e039aa34cb4f8034 (diff)
downloadFreeBSD-src-7d4ec70696e3e9f686cee8f071d9e21711c3d94e.zip
FreeBSD-src-7d4ec70696e3e9f686cee8f071d9e21711c3d94e.tar.gz
Fix the spinlock static table adding missing spinlocks.
- rm_spinlock has turnstile chain as child - srclock has callout and clk as child, found by witness "emulation". Just move it very high in our ranking
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index a24a188..3019a7a 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -404,6 +404,7 @@ static struct witness_order_list_entry order_lists[] = {
#endif
{ "rm.mutex_mtx", &lock_class_mtx_spin },
{ "sio", &lock_class_mtx_spin },
+ { "scrlock", &lock_class_mtx_spin },
#ifdef __i386__
{ "cy", &lock_class_mtx_spin },
#endif
@@ -421,6 +422,7 @@ static struct witness_order_list_entry order_lists[] = {
{ "process slock", &lock_class_mtx_spin },
{ "sleepq chain", &lock_class_mtx_spin },
{ "umtx lock", &lock_class_mtx_spin },
+ { "rm_spinlock", &lock_class_mtx_spin },
{ "turnstile chain", &lock_class_mtx_spin },
{ "turnstile lock", &lock_class_mtx_spin },
{ "sched lock", &lock_class_mtx_spin },
OpenPOWER on IntegriCloud