Eliminate one case of VI_UNLOCK followed by an immediate

VI_LOCK.
This commit is contained in:
Alexander Kabaev 2003-09-19 19:13:54 +00:00
parent b5155e8fbc
commit aebbeee812

View File

@ -2220,9 +2220,8 @@ vrele(vp)
KASSERT(vp->v_iflag & VI_DOINGINACT,
("vrele: lost VI_DOINGINACT"));
vp->v_iflag &= ~VI_DOINGINACT;
VI_UNLOCK(vp);
}
VI_LOCK(vp);
} else
VI_LOCK(vp);
if (VSHOULDFREE(vp))
vfree(vp);
else