summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index c3c6e5a..a6165cf 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -524,7 +524,9 @@ cluster_callback(bp)
if (bp->b_ioflags & BIO_ERROR)
error = bp->b_error;
+ VM_LOCK_GIANT();
pmap_qremove(trunc_page((vm_offset_t) bp->b_data), bp->b_npages);
+ VM_UNLOCK_GIANT();
/*
* Move memory from the large cluster buffer into the component
* buffers and mark IO as done on these.
OpenPOWER on IntegriCloud