vm_object locking is not needed there as pages are already wired.

Sponsored by:	EMC / Isilon storage division
Submitted by:	alc
This commit is contained in:
Attilio Rao 2013-05-21 20:54:03 +00:00
parent 9af6d512f5
commit bed927ee17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250885

View File

@ -4211,7 +4211,6 @@ vfs_bio_bzero_buf(struct buf *bp, int base, int size)
} 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 base, int size)
size -= n;
n = PAGE_SIZE;
}
VM_OBJECT_WUNLOCK(bp->b_bufobj->bo_object);
}
}