summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-10-25 19:52:44 +0000
committeralc <alc@FreeBSD.org>2004-10-25 19:52:44 +0000
commit50d63268a9d477e7c04c618790bb07acc44dc916 (patch)
tree1c26503f49f589c393458d522cf3e5a54f6ab2ff
parent7a008b17d181814b38d7067ad870743987d7c739 (diff)
downloadFreeBSD-src-50d63268a9d477e7c04c618790bb07acc44dc916.zip
FreeBSD-src-50d63268a9d477e7c04c618790bb07acc44dc916.tar.gz
Assert that the containing vm object is locked in vm_page_flash().
-rw-r--r--sys/vm/vm_page.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index ab20e06..7cf2bf7 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -312,6 +312,8 @@ vm_page_busy(vm_page_t m)
void
vm_page_flash(vm_page_t m)
{
+
+ VM_OBJECT_LOCK_ASSERT(m->object, MA_OWNED);
if (m->flags & PG_WANTED) {
vm_page_flag_clear(m, PG_WANTED);
wakeup(m);
OpenPOWER on IntegriCloud