It is safe to wire a page while the object is busy.

Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D22636
This commit is contained in:
Jeff Roberson 2019-12-08 01:49:53 +00:00
parent 2306558c54
commit cff8481de4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355516

View file

@ -3803,7 +3803,7 @@ vm_page_wire(vm_page_t m)
KASSERT(m->object != NULL,
("vm_page_wire: page %p does not belong to an object", m));
if (!vm_page_busied(m))
if (!vm_page_busied(m) && !vm_object_busied(m->object))
VM_OBJECT_ASSERT_LOCKED(m->object);
KASSERT((m->flags & PG_FICTITIOUS) == 0 ||
VPRC_WIRE_COUNT(m->ref_count) >= 1,