* Wait for free pages to exceed the severe threshold globally. */
| 3151 | * Wait for free pages to exceed the severe threshold globally. |
| 3152 | */ |
| 3153 | void |
| 3154 | vm_wait_severe(void) |
| 3155 | { |
| 3156 | |
| 3157 | mtx_lock(&vm_domainset_lock); |
| 3158 | while (vm_page_count_severe()) { |
| 3159 | vm_severe_waiters++; |
| 3160 | msleep(&vm_severe_domains, &vm_domainset_lock, PVM, |
| 3161 | "vmwait", 0); |
| 3162 | } |
| 3163 | mtx_unlock(&vm_domainset_lock); |
| 3164 | } |
| 3165 | |
| 3166 | u_int |
| 3167 | vm_wait_count(void) |
nothing calls this directly
no test coverage detected