vm_object_collapse_scan_wait: drop locks before reacquiring

Regression from r352174.  In the vm_page_rename() failure case we forgot
to unlock the vm object locks before sleeping and reacquiring them.

Reviewed by:	jeff
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D22542
This commit is contained in:
rlibby 2019-11-25 07:38:31 +00:00
parent 32e5f65de4
commit 7a0572369e

View File

@ -1496,6 +1496,8 @@ vm_object_collapse_scan_wait(vm_object_t object, vm_page_t p, vm_page_t next,
return (next);
/* The page is only NULL when rename fails. */
if (p == NULL) {
VM_OBJECT_WUNLOCK(object);
VM_OBJECT_WUNLOCK(backing_object);
vm_radix_wait();
} else {
if (p->object == object)