Regrab dvp only when ISDOTDOT.
Approved by: re (scottl)
This commit is contained in:
parent
23f924934d
commit
045f25a28d
@ -915,7 +915,8 @@ udf_lookup(struct vop_cachedlookup_args *a)
|
||||
if (flags & ISDOTDOT)
|
||||
VOP_UNLOCK(dvp, 0, a->a_cnp->cn_thread);
|
||||
error = udf_vget(udfmp->im_mountp, id, LK_EXCLUSIVE, &tdp);
|
||||
vn_lock(dvp, LK_EXCLUSIVE|LK_RETRY, a->a_cnp->cn_thread);
|
||||
if (flags & ISDOTDOT)
|
||||
vn_lock(dvp, LK_EXCLUSIVE|LK_RETRY, a->a_cnp->cn_thread);
|
||||
if (!error) {
|
||||
/*
|
||||
* Remember where this entry was if it's the final
|
||||
|
Loading…
Reference in New Issue
Block a user