summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_witness.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-09-24 18:47:24 +0000
committerjhb <jhb@FreeBSD.org>2008-09-24 18:47:24 +0000
commit8d01b3e526211bb7a97d75c934a16413164f2b81 (patch)
tree6df27e846b81bfee544bff0f0fe7ad4f8896775f /sys/kern/subr_witness.c
parentd652830aef6bca57c9b5b003875f4e135151573f (diff)
downloadFreeBSD-src-8d01b3e526211bb7a97d75c934a16413164f2b81.zip
FreeBSD-src-8d01b3e526211bb7a97d75c934a16413164f2b81.tar.gz
Update description of witness_watch.
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r--sys/kern/subr_witness.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 9cdad8d..e9d820e 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -376,9 +376,11 @@ static void witness_list_lock(struct lock_instance *instance);
SYSCTL_NODE(_debug, OID_AUTO, witness, CTLFLAG_RW, 0, "Witness Locking");
/*
- * If set to 0, witness is disabled. Otherwise witness performs full lock order
- * checking for all locks. At runtime, witness is allowed to be turned off.
- * witness is not allowed be turned on once it is turned off, however.
+ * If set to 0, lock order checking is disabled. If set to -1,
+ * witness is completely disabled. Otherwise witness performs full
+ * lock order checking for all locks. At runtime, lock order checking
+ * may be toggled. However, witness cannot be reenabled once it is
+ * completely disabled.
*/
static int witness_watch = 1;
TUNABLE_INT("debug.witness.watch", &witness_watch);
OpenPOWER on IntegriCloud