- Don't NULL the vnode's v_object pointer until after the object is torn

down.  If we have dirty pages, the putpages routine will need to know
   what the vnode's object is so that it may write out dirty pages.

Pointy hat:	phk
Found by:	obrien
This commit is contained in:
jeff 2005-04-03 22:56:58 +00:00
parent 0e7f62f5e7
commit f1de1a2b9a

View File

@ -159,7 +159,6 @@ vnode_destroy_vobject(struct vnode *vp)
if (obj == NULL)
return;
ASSERT_VOP_LOCKED(vp, "vnode_destroy_vobject");
vp->v_object = NULL;
VM_OBJECT_LOCK(obj);
if (obj->ref_count == 0) {
/*
@ -181,6 +180,7 @@ vnode_destroy_vobject(struct vnode *vp)
vm_pager_deallocate(obj);
VM_OBJECT_UNLOCK(obj);
}
vp->v_object = NULL;
}