- Call VM_LOCK_GIANT in cluster_callback() to protect some pmap calls. VFS

will not be acquiring Giant before calling this function anymore.

Sponsored by:	Isilon Systems, Inc.
This commit is contained in:
Jeff Roberson 2005-04-30 11:26:58 +00:00
parent 382a601cd7
commit 4e0ed69694

View File

@ -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.