mirror of
https://github.com/opnsense/src.git
synced 2026-04-23 15:19:31 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue