Fix panic with unlocked vnode to vrecycle().

MFC after:	2 weeks
This commit is contained in:
Bryan Drewery 2017-02-18 05:07:53 +00:00
parent a24c8eb847
commit 8e31b510b0

View File

@ -714,7 +714,9 @@ do_recycle(void *context, int pending __unused)
{
struct vnode *vp = (struct vnode *)context;
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
vrecycle(vp);
VOP_UNLOCK(vp, 0);
vdrop(vp);
}