summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2009-05-20 02:51:48 +0000
committerkmacy <kmacy@FreeBSD.org>2009-05-20 02:51:48 +0000
commit879984a728d558b3de462a2a1f8bbbf20f28c731 (patch)
tree13fb847ef84c897c8cd6abb26f9a012c494a70fd /sys/kern/subr_witness.c
parent574250923651516e2876d76c3bf888d2f7a91e33 (diff)
downloadFreeBSD-src-879984a728d558b3de462a2a1f8bbbf20f28c731.zip
FreeBSD-src-879984a728d558b3de462a2a1f8bbbf20f28c731.tar.gz
Add minimal ZFS lock hierarchy
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 6d54be2..799dbcc 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -610,6 +610,13 @@ static struct witness_order_list_entry order_lists[] = {
{ "vnode interlock", &lock_class_mtx_sleep },
{ NULL, NULL },
/*
+ * ZFS locking
+ */
+ { "dn->dn_mtx", &lock_class_sx },
+ { "dr->dt.di.dr_mtx", &lock_class_sx },
+ { "db->db_mtx", &lock_class_sx },
+ { NULL, NULL },
+ /*
* spin locks
*/
#ifdef SMP
OpenPOWER on IntegriCloud