Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2019 21:54:45 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r351632 - head/sys/kern
Message-ID:  <201908302154.x7ULsjda041811@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Fri Aug 30 21:54:45 2019
New Revision: 351632
URL: https://svnweb.freebsd.org/changeset/base/351632

Log:
  vfs: add a missing VNODE_REFCOUNT_FENCE_REL to v_incr_usecount_locked
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/kern/vfs_subr.c

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c	Fri Aug 30 21:49:00 2019	(r351631)
+++ head/sys/kern/vfs_subr.c	Fri Aug 30 21:54:45 2019	(r351632)
@@ -2641,6 +2641,7 @@ v_incr_usecount_locked(struct vnode *vp)
 		VNASSERT(vp->v_usecount == 0, vp,
 		    ("vnode with usecount and VI_OWEINACT set"));
 		vp->v_iflag &= ~VI_OWEINACT;
+		VNODE_REFCOUNT_FENCE_REL();
 	}
 	refcount_acquire(&vp->v_usecount);
 	v_incr_devcount(vp);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908302154.x7ULsjda041811>