Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jun 2013 20:32:34 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r251229 - head/sys/vm
Message-ID:  <201306012032.r51KWYY9000708@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306012032.r51KWYY9000708>