summaryrefslogtreecommitdiff
path: root/sys/vm/swap_pager.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2003-05-06 02:45:28 +0000
committerAlan Cox <alc@FreeBSD.org>2003-05-06 02:45:28 +0000
commit658ad5fff58184bb2c1158acdd7093630bfe22a6 (patch)
tree0642a659dd641e9dd47bd989f39c608b4ee57e0d /sys/vm/swap_pager.c
parenta260623c5f16954a435943093d466b0384aed04a (diff)
downloadsrc-test2-658ad5fff58184bb2c1158acdd7093630bfe22a6.tar.gz
src-test2-658ad5fff58184bb2c1158acdd7093630bfe22a6.zip
Notes
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 b21d6acccec2..fcb7a09cf245 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