summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2004-12-29 04:49:10 +0000
committeralc <alc@FreeBSD.org>2004-12-29 04:49:10 +0000
commitf5297a787eaa927fb1b958ba2949f6283a9b5688 (patch)
treee68a43ec99f68e258cd08ad8a8a9471a783f1d1d /sys/kern/vfs_cluster.c
parentd44285ef3ea7347bd13d1f777e93e0d337a30650 (diff)
downloadFreeBSD-src-f5297a787eaa927fb1b958ba2949f6283a9b5688.zip
FreeBSD-src-f5297a787eaa927fb1b958ba2949f6283a9b5688.tar.gz
Eliminate (now) unnecessary acquisition and release of the global page
queues lock.
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 5245268..92687ba 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;
OpenPOWER on IntegriCloud