summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-08-11 00:21:40 +0000
committeralc <alc@FreeBSD.org>2002-08-11 00:21:40 +0000
commitef9bd6a7a5c2049d51f0e5b75d6bcbb60502b7e8 (patch)
tree6659eae2f51d1fdb5ce616da48676c4fc1eb9a80 /sys/vm/vm_page.c
parent4eca68cb45090e5f7dcc9cc40bd7b3b4abae8384 (diff)
downloadFreeBSD-src-ef9bd6a7a5c2049d51f0e5b75d6bcbb60502b7e8.zip
FreeBSD-src-ef9bd6a7a5c2049d51f0e5b75d6bcbb60502b7e8.tar.gz
o Assert that the page queues lock is held in vm_page_activate().
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 ba1809b..a4b9fc6 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -1052,7 +1052,7 @@ vm_page_activate(vm_page_t m)
{
int s;
- GIANT_REQUIRED;
+ mtx_assert(&vm_page_queue_mtx, MA_OWNED);
s = splvm();
if (m->queue != PQ_ACTIVE) {
if ((m->queue - m->pc) == PQ_CACHE)
OpenPOWER on IntegriCloud