diff options
author | attilio <attilio@FreeBSD.org> | 2013-05-21 20:54:03 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2013-05-21 20:54:03 +0000 |
commit | 9adbac28e868932ac44ce3e626094ca2502efef8 (patch) | |
tree | 60761676810536da90e26b372c16c5b7dacd2f89 /sys/kern | |
parent | fdf82ef9cfb84888e76e303fe6c9ee30fbc21d1e (diff) | |
download | FreeBSD-src-9adbac28e868932ac44ce3e626094ca2502efef8.zip FreeBSD-src-9adbac28e868932ac44ce3e626094ca2502efef8.tar.gz |
vm_object locking is not needed there as pages are already wired.
Sponsored by: EMC / Isilon storage division
Submitted by: alc
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_bio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 5c5bde4..60816b1 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -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); } } |