diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c index 5245268988f8..92687ba00967 100644 --- a/sys/kern/vfs_cluster.c +++ b/sys/kern/vfs_cluster.c @@ -453,7 +453,6 @@ cluster_rbuild(vp, filesize, lbn, blkno, size, run, fbp) TAILQ_INSERT_TAIL(&bp->b_cluster.cluster_head, tbp, b_cluster.cluster_entry); VM_OBJECT_LOCK(tbp->b_bufobj->bo_object); - vm_page_lock_queues(); for (j = 0; j < tbp->b_npages; j += 1) { vm_page_t m; m = tbp->b_pages[j]; @@ -467,7 +466,6 @@ cluster_rbuild(vp, filesize, lbn, blkno, size, run, fbp) if ((m->valid & VM_PAGE_BITS_ALL) == VM_PAGE_BITS_ALL) tbp->b_pages[j] = bogus_page; } - vm_page_unlock_queues(); VM_OBJECT_UNLOCK(tbp->b_bufobj->bo_object); /* * XXX shouldn't this be += size for both, like in @@ -938,7 +936,6 @@ cluster_wbuild(vp, size, start_lbn, len) } } } - vm_page_lock_queues(); for (j = 0; j < tbp->b_npages; j += 1) { m = tbp->b_pages[j]; vm_page_io_start(m); @@ -949,7 +946,6 @@ cluster_wbuild(vp, size, start_lbn, len) bp->b_npages++; } } - vm_page_unlock_queues(); VM_OBJECT_UNLOCK(tbp->b_bufobj->bo_object); } bp->b_bcount += size;