Fix panic with unlocked vnode to vrecycle().
MFC after: 2 weeks
This commit is contained in:
parent
a24c8eb847
commit
8e31b510b0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user