summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2014-10-01 16:16:01 +0000
committerwill <will@FreeBSD.org>2014-10-01 16:16:01 +0000
commit1a84e6f10e0d223094e4427c17b8425a50dc0108 (patch)
treeaf7a1fbf7c09f2b7e7ff20eacdeafeb34eb437bc
parent47431db4e9e945e13f4f501b09cb6721006ff747 (diff)
downloadFreeBSD-src-1a84e6f10e0d223094e4427c17b8425a50dc0108.zip
FreeBSD-src-1a84e6f10e0d223094e4427c17b8425a50dc0108.tar.gz
Embellish a comment regarding the reliability of DEBUG_VFS_LOCKS.
Submitted by: kib
-rw-r--r--sys/sys/vnode.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index acddfc0..6b07295 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -503,7 +503,9 @@ extern struct vnodeop_desc *vnodeop_descs[];
* reliable since if the thread sleeps between changing the lock
* state and checking it with the assert, some other thread could
* change the state. They are good enough for debugging a single
- * filesystem using a single-threaded test.
+ * filesystem using a single-threaded test. Note that the unreliability is
+ * limited to false negatives; efforts were made to ensure that false
+ * positives cannot occur.
*/
void assert_vi_locked(struct vnode *vp, const char *str);
void assert_vi_unlocked(struct vnode *vp, const char *str);
OpenPOWER on IntegriCloud