diff options
author | alc <alc@FreeBSD.org> | 2002-07-04 22:07:37 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-07-04 22:07:37 +0000 |
commit | 29ede8a9d4cd71cdb47fd01b457cdfc5f3bf647a (patch) | |
tree | 0cb6d613c77afdfea90102f0ab4959ddba083755 /sys/vm/vm_page.h | |
parent | 7125e0b545a66938fc2f2366b22ee9bc981e7b93 (diff) | |
download | FreeBSD-src-29ede8a9d4cd71cdb47fd01b457cdfc5f3bf647a.zip FreeBSD-src-29ede8a9d4cd71cdb47fd01b457cdfc5f3bf647a.tar.gz |
o Resurrect vm_page_lock_queues(), vm_page_unlock_queues(), and the free
queue lock (revision 1.33 of vm/vm_page.c removed them).
o Make the free queue lock a spin lock because it's sometimes acquired
inside of a critical section.
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index b2ddeb4..066fd8d 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -216,6 +216,11 @@ struct vpgqueues { }; extern struct vpgqueues vm_page_queues[PQ_COUNT]; +extern struct mtx vm_page_queue_mtx; +extern struct mtx vm_page_queue_free_mtx; + +#define vm_page_lock_queues() mtx_lock(&vm_page_queue_mtx) +#define vm_page_unlock_queues() mtx_unlock(&vm_page_queue_mtx) #endif /* !defined(KLD_MODULE) */ |