Satisfy vm_object uma zone destructor requirements after r282660 when
vnode object creation raced. Reported by: pho Reviewed by: alc Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
bfca9c9400
commit
9cddade79a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=282706
@ -237,6 +237,12 @@ vnode_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
|
||||
* Object has been created while we were sleeping
|
||||
*/
|
||||
VI_UNLOCK(vp);
|
||||
VM_OBJECT_WLOCK(object);
|
||||
KASSERT(object->ref_count == 1,
|
||||
("leaked ref %p %d", object, object->ref_count));
|
||||
object->type = OBJT_DEAD;
|
||||
object->ref_count = 0;
|
||||
VM_OBJECT_WUNLOCK(object);
|
||||
vm_object_destroy(object);
|
||||
goto retry;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user