summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-07-20 19:34:21 +0000
committeralc <alc@FreeBSD.org>2002-07-20 19:34:21 +0000
commita01b1feba6a536597245b8bd8d380609d0150b85 (patch)
tree90803103d9c339dbabf21b47f9f55a380fbac650 /sys/vm/vm_page.c
parent989a44416be114056b9c1d89e6f63d82ad32e8c6 (diff)
downloadFreeBSD-src-a01b1feba6a536597245b8bd8d380609d0150b85.zip
FreeBSD-src-a01b1feba6a536597245b8bd8d380609d0150b85.tar.gz
o Lock page queue accesses by vm_page_cache() in vm_fault() and
vm_pageout_scan(). (The others are already locked.) o Assert that the page queues lock is held in vm_page_cache().
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 7a03d47..831f8c8 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1412,7 +1412,7 @@ vm_page_cache(vm_page_t m)
{
int s;
- GIANT_REQUIRED;
+ mtx_assert(&vm_page_queue_mtx, MA_OWNED);
if ((m->flags & (PG_BUSY|PG_UNMANAGED)) || m->busy || m->wire_count) {
printf("vm_page_cache: attempting to cache busy page\n");
return;
OpenPOWER on IntegriCloud