diff options
author | pjd <pjd@FreeBSD.org> | 2005-04-09 13:32:01 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-04-09 13:32:01 +0000 |
commit | 853bddab2983baf051504fc75b2a2465c25a8d81 (patch) | |
tree | 3c40eb1563a697ce3d85f92cfdc16b5fcf97dfe7 | |
parent | 4048451472383a05d3c327cd42bd666c9a5ba504 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/kern/subr_witness.c | 6 |
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 |