Acquire and release Giant around a call to VOP_BMAP(). (This is a

prerequisite to any further reduction in Giant's use by vm_fault().)
This commit is contained in:
alc 2004-08-19 02:37:12 +00:00
parent 3d9f38d578
commit 268e93a97a

View File

@ -243,7 +243,9 @@ vnode_pager_haspage(object, pindex, before, after)
reqblock = pindex * blocksperpage;
}
VM_OBJECT_UNLOCK(object);
mtx_lock(&Giant);
err = VOP_BMAP(vp, reqblock, NULL, &bn, after, before);
mtx_unlock(&Giant);
VM_OBJECT_LOCK(object);
if (err)
return TRUE;