From 2f738aa7b35cfd361de2aeebc65fc5a610d2e2e4 Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Sat, 18 Dec 1999 22:57:38 +0000 Subject: [PATCH] Do NOT unlock dvp if LOCKPARENT && vp == dvp. Does not affect any code presently in the tree. --- sys/sys/namei.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/sys/namei.h b/sys/sys/namei.h index 143c0f061c4f..29e35e1ab287 100644 --- a/sys/sys/namei.h +++ b/sys/sys/namei.h @@ -181,7 +181,8 @@ NDINIT(ndp, op, flags, segflg, namep, p) _ndp->ni_cnd.cn_flags &= ~HASBUF; \ } \ if (!(_flags & NDF_NO_DVP_UNLOCK) && \ - (_ndp->ni_cnd.cn_flags & LOCKPARENT)) \ + (_ndp->ni_cnd.cn_flags & LOCKPARENT) && \ + _ndp->ni_dvp != _ndp->ni_vp) \ VOP_UNLOCK(_ndp->ni_dvp, 0, _ndp->ni_cnd.cn_proc); \ if (!(_flags & NDF_NO_DVP_RELE) && \ (_ndp->ni_cnd.cn_flags & (LOCKPARENT|WANTPARENT))) { \