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:
Ryan Libby 2019-11-25 07:38:31 +00:00
parent 43cefe8b19
commit 6a14746c01

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)