Use pause() in vm_object_deallocate() to yield the CPU to the lock holder
rather than a tsleep() on &proc0. The only wakeup on &proc0 is intended to awaken the swapper, not random threads blocked in vm_object_deallocate().
This commit is contained in:
parent
1a4435ee0e
commit
8db5fc58ff
@ -516,7 +516,7 @@ vm_object_deallocate(vm_object_t object)
|
||||
* priority than the current thread.
|
||||
* Let the lower priority thread run.
|
||||
*/
|
||||
tsleep(&proc0, PVM, "vmo_de", 1);
|
||||
pause("vmo_de", 1);
|
||||
continue;
|
||||
}
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user