Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Apr 2009 00:34: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: r191256 - head/sys/vm
Message-ID:  <200904190034.n3J0YYTG091443@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Sun Apr 19 00:34:34 2009
New Revision: 191256
URL: http://svn.freebsd.org/changeset/base/191256

Log:
  Allow valid pages to be mapped for read access when they have a non-zero
  busy count.  Only mappings that allow write access should be prevented by
  a non-zero busy count.
  
  (The prohibition on mapping pages for read access when they have a non-
  zero busy count originated in revision 1.202 of i386/i386/pmap.c when
  this code was a part of the pmap.)
  
  Reviewed by:	tegge

Modified:
  head/sys/vm/vm_fault.c
  head/sys/vm/vm_map.c

Modified: head/sys/vm/vm_fault.c
==============================================================================
--- head/sys/vm/vm_fault.c	Sun Apr 19 00:16:04 2009	(r191255)
+++ head/sys/vm/vm_fault.c	Sun Apr 19 00:34:34 2009	(r191256)
@@ -1027,7 +1027,6 @@ vm_fault_prefault(pmap_t pmap, vm_offset
 			break;
 		}
 		if (((m->valid & VM_PAGE_BITS_ALL) == VM_PAGE_BITS_ALL) &&
-			(m->busy == 0) &&
 		    (m->flags & PG_FICTITIOUS) == 0) {
 
 			vm_page_lock_queues();

Modified: head/sys/vm/vm_map.c
==============================================================================
--- head/sys/vm/vm_map.c	Sun Apr 19 00:16:04 2009	(r191255)
+++ head/sys/vm/vm_map.c	Sun Apr 19 00:34:34 2009	(r191256)
@@ -1683,8 +1683,7 @@ vm_map_pmap_enter(vm_map_t map, vm_offse
 			psize = tmpidx;
 			break;
 		}
-		if ((p->valid & VM_PAGE_BITS_ALL) == VM_PAGE_BITS_ALL &&
-		    (p->busy == 0)) {
+		if ((p->valid & VM_PAGE_BITS_ALL) == VM_PAGE_BITS_ALL) {
 			if (p_start == NULL) {
 				start = addr + ptoa(tmpidx);
 				p_start = p;



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