From b4e498071de0516e77aa9b3db100af2edf4590f9 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 1 Jun 2013 20:32:34 +0000 Subject: [PATCH] Now that access to the page's "act_count" field is synchronized by the page lock instead of the object lock, there is no reason for vm_page_activate() to assert that the object is locked for either read or write access. (The "VPO_UNMANAGED" flag never changes after page allocation.) Sponsored by: EMC / Isilon Storage Division --- sys/vm/vm_page.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 15697c983df..5a1c05563af 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -1837,7 +1837,6 @@ vm_page_activate(vm_page_t m) int queue; vm_page_lock_assert(m, MA_OWNED); - VM_OBJECT_ASSERT_WLOCKED(m->object); if ((queue = m->queue) != PQ_ACTIVE) { if (m->wire_count == 0 && (m->oflags & VPO_UNMANAGED) == 0) { if (m->act_count < ACT_INIT)