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:
parent
3d9f38d578
commit
268e93a97a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user