From c19618dd7d68b731fbc460280ef97444d7480f50 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sat, 9 Apr 2005 13:32:01 +0000 Subject: [PATCH] CDEV lock should be before 'system map' lock. Hardcode this order to help track down reported LOR. LOR reported by: Thierry Herbelot LOR info: http://sources.zabbadoz.net/freebsd/lor.html#080 --- sys/kern/subr_witness.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 6b515b98abf..ae54d5ae193 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -330,6 +330,12 @@ static struct witness_order_list_entry order_lists[] = { { "nfsd_mtx", &lock_class_mtx_sleep }, { "so_snd", &lock_class_mtx_sleep }, { NULL, NULL }, + /* + * CDEV + */ + { "cdev", &lock_class_mtx_sleep }, + { "system map", &lock_class_mtx_sleep }, + { NULL, NULL }, /* * spin locks */