Date: Mon, 20 Jun 2016 15:45:50 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r302029 - head/sys/kern Message-ID: <201606201545.u5KFjo9S082199@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606201545.u5KFjo9S082199>