mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
Don't unlock the parent directory vnode twice if the ISDOTDOT flag
is set.
This commit is contained in:
parent
878d4f3dda
commit
64820e19bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115609
@ -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);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user