summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2005-04-09 13:32:01 +0000
committerpjd <pjd@FreeBSD.org>2005-04-09 13:32:01 +0000
commit853bddab2983baf051504fc75b2a2465c25a8d81 (patch)
tree3c40eb1563a697ce3d85f92cfdc16b5fcf97dfe7 /sys/kern
parent4048451472383a05d3c327cd42bd666c9a5ba504 (diff)
downloadFreeBSD-src-853bddab2983baf051504fc75b2a2465c25a8d81.zip
FreeBSD-src-853bddab2983baf051504fc75b2a2465c25a8d81.tar.gz
CDEV lock should be before 'system map' lock.
Hardcode this order to help track down reported LOR. LOR reported by: Thierry Herbelot <thierry@herbelot.com> LOR info: http://sources.zabbadoz.net/freebsd/lor.html#080
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_witness.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 6b515b9..ae54d5a 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -331,6 +331,12 @@ static struct witness_order_list_entry order_lists[] = {
{ "so_snd", &lock_class_mtx_sleep },
{ NULL, NULL },
/*
+ * CDEV
+ */
+ { "cdev", &lock_class_mtx_sleep },
+ { "system map", &lock_class_mtx_sleep },
+ { NULL, NULL },
+ /*
* spin locks
*/
#ifdef SMP
OpenPOWER on IntegriCloud