diff options
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index b0f6aeb..7c83674 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -2286,8 +2286,10 @@ vgonel(struct vnode *vp, struct thread *td) * wait until it is done and return. */ ASSERT_VI_LOCKED(vp, "vgonel"); - if (vx_waitl(vp)) + if (vx_waitl(vp)) { + VI_UNLOCK(vp); return; + } vx_lock(vp); |