Don't unlock the parent directory vnode twice if the ISDOTDOT flag

is set.
This commit is contained in:
Don Lewis 2003-06-01 09:16:26 +00:00
parent 878d4f3dda
commit 64820e19bc

View File

@ -411,7 +411,8 @@ pfs_lookup(struct vop_lookup_args *va)
vn_lock(vn, LK_EXCLUSIVE|LK_RETRY, cnp->cn_thread);
cnp->cn_flags &= ~PDIRUNLOCK;
}
if (!lockparent || !(cnp->cn_flags & ISLASTCN))
if (!((lockparent && (cnp->cn_flags & ISLASTCN)) ||
(cnp->cn_flags & ISDOTDOT)))
VOP_UNLOCK(vn, 0, cnp->cn_thread);
/*