aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2002-12-01 05:40:18 +0000
committerAlan Cox <alc@FreeBSD.org>2002-12-01 05:40:18 +0000
commit38857e7f73e3beffb707caa1694f1e87f0cf42e8 (patch)
treee1565aae9ae4c30b5618772460e47079bcd5cfae /sys
parent1efbdbe23bea2b59db38c3fab0098e167a3f07b1 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/vm_pageout.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c
index 4ac525929c2f5..d81d581bf30d7 100644
--- a/sys/vm/vm_pageout.c
+++ b/sys/vm/vm_pageout.c
@@ -592,17 +592,19 @@ vm_pageout_map_deactivate_pages(map, desired)
vm_pageout_object_deactivate_pages(map, obj, desired, 0);
}
tmpe = tmpe->next;
- };
+ }
/*
* Remove all mappings if a process is swapped out, this will free page
* table pages.
*/
- if (desired == 0 && nothingwired)
+ if (desired == 0 && nothingwired) {
+ vm_page_lock_queues();
pmap_remove(vm_map_pmap(map), vm_map_min(map),
vm_map_max(map));
+ vm_page_unlock_queues();
+ }
vm_map_unlock(map);
- return;
}
#endif /* !defined(NO_SWAPPING) */