svn commit: r250885 - head/sys/kern

Attilio Rao attilio at FreeBSD.org
Tue May 21 20:54:03 UTC 2013


Author: attilio
Date: Tue May 21 20:54:03 2013
New Revision: 250885
URL: http://svnweb.freebsd.org/changeset/base/250885

Log:
  vm_object locking is not needed there as pages are already wired.
  
  Sponsored by:	EMC / Isilon storage division
  Submitted by:	alc

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Tue May 21 20:38:19 2013	(r250884)
+++ head/sys/kern/vfs_bio.c	Tue May 21 20:54:03 2013	(r250885)
@@ -4211,7 +4211,6 @@ vfs_bio_bzero_buf(struct buf *bp, int ba
 	} else {
 		BUF_CHECK_UNMAPPED(bp);
 		n = PAGE_SIZE - (base & PAGE_MASK);
-		VM_OBJECT_WLOCK(bp->b_bufobj->bo_object);
 		for (i = base / PAGE_SIZE; size > 0 && i < bp->b_npages; ++i) {
 			m = bp->b_pages[i];
 			if (n > size)
@@ -4221,7 +4220,6 @@ vfs_bio_bzero_buf(struct buf *bp, int ba
 			size -= n;
 			n = PAGE_SIZE;
 		}
-		VM_OBJECT_WUNLOCK(bp->b_bufobj->bo_object);
 	}
 }
 


More information about the svn-src-head mailing list