Fix a double object unlock in vm_object_backing_collapse_wait().

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25327
This commit is contained in:
Mark Johnston 2020-06-19 03:31:46 +00:00
parent 93440bbefd
commit 61b006887e

View File

@ -864,7 +864,6 @@ vm_object_backing_collapse_wait(vm_object_t object)
VM_OBJECT_WLOCK(backing_object); VM_OBJECT_WLOCK(backing_object);
if ((backing_object->flags & (OBJ_DEAD | OBJ_COLLAPSING)) == 0) if ((backing_object->flags & (OBJ_DEAD | OBJ_COLLAPSING)) == 0)
break; break;
VM_OBJECT_WUNLOCK(object);
vm_object_pip_sleep(backing_object, "vmbckwait"); vm_object_pip_sleep(backing_object, "vmbckwait");
counter_u64_add(object_collapse_waits, 1); counter_u64_add(object_collapse_waits, 1);
VM_OBJECT_WLOCK(object); VM_OBJECT_WLOCK(object);