diff options
author | alc <alc@FreeBSD.org> | 2003-10-04 22:47:20 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2003-10-04 22:47:20 +0000 |
commit | 74f19ddd0e60157ed1517ea26258f4b89b688bea (patch) | |
tree | bcc62a1f6dd20782861d575ffd668d3b1ffc2c49 /sys/kern/vfs_bio.c | |
parent | 1cffeebc9c7faa93e9b4c832c7416598e61b0068 (diff) | |
download | FreeBSD-src-74f19ddd0e60157ed1517ea26258f4b89b688bea.zip FreeBSD-src-74f19ddd0e60157ed1517ea26258f4b89b688bea.tar.gz |
Eliminate some unnecessary uses of the vm page queues lock around the
vm page's valid field. This field is being synchronized using the
containing vm object's lock.
Diffstat (limited to 'sys/kern/vfs_bio.c')
-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 8794440..e9d8858 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -3591,9 +3591,7 @@ tryagain: VM_OBJECT_LOCK(kernel_object); goto tryagain; } - vm_page_lock_queues(); p->valid = VM_PAGE_BITS_ALL; - vm_page_unlock_queues(); pmap_qenter(pg, &p, 1); bp->b_pages[index] = p; vm_page_lock_queues(); |