In the previous revision, I failed to condition an early release of Giant

in vm_fault() on debug_mpsafevm.  If debug_mpsafevm was not set, the result
was an assertion failure early in the boot process.

Reported by: green@
This commit is contained in:
Alan Cox 2004-08-22 00:08:43 +00:00
parent b062951a3d
commit 3268a1bf75

View File

@ -295,7 +295,8 @@ RetryFault:;
VM_OBJECT_LOCK(fs.first_object);
vm_object_reference_locked(fs.first_object);
fs.vp = vnode_pager_lock(fs.first_object);
mtx_unlock(&Giant);
if (debug_mpsafevm)
mtx_unlock(&Giant);
vm_object_pip_add(fs.first_object, 1);
fs.lookup_still_valid = TRUE;