mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
Fix panic with unlocked vnode to vrecycle().
MFC after: 2 weeks
This commit is contained in:
parent
a24c8eb847
commit
8e31b510b0
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue