svn commit: r302029 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Mon Jun 20 15:45:51 UTC 2016
Author: kib
Date: Mon Jun 20 15:45:50 2016
New Revision: 302029
URL: https://svnweb.freebsd.org/changeset/base/302029
Log:
Fix typo. Note that atomic is still required even for interlocked case.
Sponsored by: The FreeBSD Foundation
Approved by: re (marius)
Modified:
head/sys/kern/vfs_subr.c
Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c Mon Jun 20 09:15:03 2016 (r302028)
+++ head/sys/kern/vfs_subr.c Mon Jun 20 15:45:50 2016 (r302029)
@@ -2494,9 +2494,10 @@ v_decr_devcount(struct vnode *vp)
*
* Notes on lockless counter manipulation:
* _vhold, vputx and other routines make various decisions based
- * on either holdcnt or usecount being 0. As long as either contuner
+ * on either holdcnt or usecount being 0. As long as either counter
* is not transitioning 0->1 nor 1->0, the manipulation can be done
- * with atomic operations. Otherwise the interlock is taken.
+ * with atomic operations. Otherwise the interlock is taken covering
+ * both the atomic and additional actions.
*/
int
vget(struct vnode *vp, int flags, struct thread *td)
More information about the svn-src-all
mailing list