svn commit: r251229 - head/sys/vm

Alan Cox alc at FreeBSD.org
Sat Jun 1 20:32:35 UTC 2013


Author: alc
Date: Sat Jun  1 20:32:34 2013
New Revision: 251229
URL: http://svnweb.freebsd.org/changeset/base/251229

Log:
  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

Modified:
  head/sys/vm/vm_page.c

Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c	Sat Jun  1 19:07:03 2013	(r251228)
+++ head/sys/vm/vm_page.c	Sat Jun  1 20:32:34 2013	(r251229)
@@ -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)


More information about the svn-src-all mailing list