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:
Alan Cox 2004-08-19 02:37:12 +00:00
parent 4c5bc1ca39
commit 0cb507cb20

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;