Embellish a comment regarding the reliability of DEBUG_VFS_LOCKS.

Submitted by:	kib
This commit is contained in:
Will Andrews 2014-10-01 16:16:01 +00:00
parent eabf853d8d
commit bf66496e07
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272371

View File

@ -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);