Revert r334708

This is the wrong place to put the barrier.
Requested by:	kib,mjg
This commit is contained in:
Justin Hibbits 2018-06-06 15:12:19 +00:00
parent 7e95e98db8
commit 3f9e1fc8ee

View File

@ -2807,9 +2807,6 @@ _vhold(struct vnode *vp, bool locked)
CTR2(KTR_VFS, "%s: vp %p", __func__, vp);
if (!locked) {
if (refcount_acquire_if_not_zero(&vp->v_holdcnt)) {
#if !defined(__amd64__) && !defined(__i386__)
mb();
#endif
VNASSERT((vp->v_iflag & VI_FREE) == 0, vp,
("_vhold: vnode with holdcnt is free"));
return;