diff options
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index f63e5ca..26eb154 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1169,7 +1169,9 @@ vinvalbuf(vp, flags, cred, td, slpflag, slptimeo) } VI_UNLOCK(vp); if (VOP_GETVOBJECT(vp, &object) == 0) { + VM_OBJECT_LOCK(object); vm_object_pip_wait(object, "vnvlbx"); + VM_OBJECT_UNLOCK(object); } VI_LOCK(vp); } while (vp->v_numoutput > 0); |