mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
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:
parent
2306558c54
commit
cff8481de4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355516
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue