When waiting for the busy page, do not unlock the object unless unlock
cannot be avoided. Reviewed by: alc MFC after: 1 week
This commit is contained in:
parent
8acfbaefd7
commit
598e4abcd1
@ -340,9 +340,13 @@ RetryFault:;
|
||||
vm_page_flag_set(fs.m, PG_REFERENCED);
|
||||
vm_page_unlock_queues();
|
||||
vm_page_unlock(fs.m);
|
||||
VM_OBJECT_UNLOCK(fs.object);
|
||||
if (fs.object != fs.first_object) {
|
||||
VM_OBJECT_LOCK(fs.first_object);
|
||||
if (!VM_OBJECT_TRYLOCK(
|
||||
fs.first_object)) {
|
||||
VM_OBJECT_UNLOCK(fs.object);
|
||||
VM_OBJECT_LOCK(fs.first_object);
|
||||
VM_OBJECT_LOCK(fs.object);
|
||||
}
|
||||
vm_page_lock(fs.first_m);
|
||||
vm_page_free(fs.first_m);
|
||||
vm_page_unlock(fs.first_m);
|
||||
@ -351,7 +355,6 @@ RetryFault:;
|
||||
fs.first_m = NULL;
|
||||
}
|
||||
unlock_map(&fs);
|
||||
VM_OBJECT_LOCK(fs.object);
|
||||
if (fs.m == vm_page_lookup(fs.object,
|
||||
fs.pindex)) {
|
||||
vm_page_sleep_if_busy(fs.m, TRUE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user