mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
Embellish a comment regarding the reliability of DEBUG_VFS_LOCKS.
Submitted by: kib
This commit is contained in:
parent
eabf853d8d
commit
bf66496e07
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=272371
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user