mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-22 17:54:52 +00:00
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:
parent
ca29467e9a
commit
39df86086f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66720
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue