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:
jhb 2007-02-27 19:40:26 +00:00
parent b7c2a59c51
commit 54e4ea54b6

View File

@ -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;
}
/*