mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't unlock the parent directory vnode twice if the ISDOTDOT flag
is set.
This commit is contained in:
parent
878d4f3dda
commit
64820e19bc
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue