Previous commit broke interlock locking for !LK_RETRY case.

This commit is contained in:
Boris Popov 2001-03-26 12:45:35 +00:00
parent f83880518b
commit 602ef63172
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74811

View File

@ -619,13 +619,14 @@ debug_vn_lock(vp, flags, p, filename, line)
#endif
{
int error;
do {
if ((flags & LK_INTERLOCK) == 0)
mtx_lock(&vp->v_interlock);
if ((vp->v_flag & VXLOCK) && vp->v_vxproc != curproc) {
vp->v_flag |= VXWANT;
msleep(vp, &vp->v_interlock, PINOD, "vn_lock", 0);
msleep(vp, &vp->v_interlock, PINOD | PDROP,
"vn_lock", 0);
error = ENOENT;
} else {
if (vp->v_vxproc != NULL)