Do not call lockdestroy() for v_vnlock, which may point to a lock in a

deeper vfs stacking layer.

Submitted by:	bp
This commit is contained in:
Jason Evans 2000-10-06 08:04:48 +00:00
parent ca29467e9a
commit 39df86086f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66720
2 changed files with 2 additions and 8 deletions

View file

@ -1794,10 +1794,7 @@ vclean(vp, flags, p)
}
cache_purge(vp);
if (vp->v_vnlock) {
lockdestroy(vp->v_vnlock);
vp->v_vnlock = NULL;
}
vp->v_vnlock = NULL;
lockdestroy(&vp->v_lock);
if (VSHOULDFREE(vp))

View file

@ -1794,10 +1794,7 @@ vclean(vp, flags, p)
}
cache_purge(vp);
if (vp->v_vnlock) {
lockdestroy(vp->v_vnlock);
vp->v_vnlock = NULL;
}
vp->v_vnlock = NULL;
lockdestroy(&vp->v_lock);
if (VSHOULDFREE(vp))