summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_page.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-07-31 07:27:08 +0000
committeralc <alc@FreeBSD.org>2002-07-31 07:27:08 +0000
commitb53d53a590ee4b37ffbbc94ba94a79768c7ced26 (patch)
treed49e59d08a457a2d70c935629da238b02279c1fd /sys/vm/vm_page.c
parentc1cd9e269dc8310bad5c79845579c21d2b902477 (diff)
downloadFreeBSD-src-b53d53a590ee4b37ffbbc94ba94a79768c7ced26.zip
FreeBSD-src-b53d53a590ee4b37ffbbc94ba94a79768c7ced26.tar.gz
o Lock page accesses by vm_page_io_start() with the page queues lock.
o Assert that the page queues lock is held in vm_page_io_start().
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r--sys/vm/vm_page.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 9acd481..7286d13 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -396,7 +396,8 @@ vm_page_wakeup(vm_page_t m)
void
vm_page_io_start(vm_page_t m)
{
- GIANT_REQUIRED;
+
+ mtx_assert(&vm_page_queue_mtx, MA_OWNED);
m->busy++;
}
OpenPOWER on IntegriCloud