summaryrefslogtreecommitdiffstats
path: root/sys/vm/swap_pager.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm/swap_pager.c')
-rw-r--r--sys/vm/swap_pager.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index b21d6ac..fcb7a09 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -428,9 +428,8 @@ swap_pager_dealloc(object)
}
mtx_unlock(&sw_alloc_mtx);
- VM_OBJECT_LOCK(object);
+ VM_OBJECT_LOCK_ASSERT(object, MA_OWNED);
vm_object_pip_wait(object, "swpdea");
- VM_OBJECT_UNLOCK(object);
/*
* Free all remaining metadata. We only bother to free it from
OpenPOWER on IntegriCloud