Page MenuHomeFreeBSD

D20304.diff
No OneTemporary

D20304.diff

Index: head/sys/kern/vfs_lookup.c
===================================================================
--- head/sys/kern/vfs_lookup.c
+++ head/sys/kern/vfs_lookup.c
@@ -1332,6 +1332,10 @@
if (!(flags & NDF_NO_VP_UNLOCK) &&
(ndp->ni_cnd.cn_flags & LOCKLEAF) && ndp->ni_vp)
unlock_vp = 1;
+ if (!(flags & NDF_NO_DVP_UNLOCK) &&
+ (ndp->ni_cnd.cn_flags & LOCKPARENT) &&
+ ndp->ni_dvp != ndp->ni_vp)
+ unlock_dvp = 1;
if (!(flags & NDF_NO_VP_RELE) && ndp->ni_vp) {
if (unlock_vp) {
vput(ndp->ni_vp);
@@ -1342,10 +1346,6 @@
}
if (unlock_vp)
VOP_UNLOCK(ndp->ni_vp, 0);
- if (!(flags & NDF_NO_DVP_UNLOCK) &&
- (ndp->ni_cnd.cn_flags & LOCKPARENT) &&
- ndp->ni_dvp != ndp->ni_vp)
- unlock_dvp = 1;
if (!(flags & NDF_NO_DVP_RELE) &&
(ndp->ni_cnd.cn_flags & (LOCKPARENT|WANTPARENT))) {
if (unlock_dvp) {

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 13, 12:24 PM (12 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40749731
Default Alt Text
D20304.diff (847 B)

Event Timeline