From owner-svn-src-head@FreeBSD.ORG Tue May 21 20:54:03 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 91B7CF7D; Tue, 21 May 2013 20:54:03 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 84D0EDAF; Tue, 21 May 2013 20:54:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4LKs3QS054886; Tue, 21 May 2013 20:54:03 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4LKs3Nv054885; Tue, 21 May 2013 20:54:03 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201305212054.r4LKs3Nv054885@svn.freebsd.org> From: Attilio Rao Date: Tue, 21 May 2013 20:54:03 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250885 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 May 2013 20:54:03 -0000 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); } }