See uma.h */
| 3158 | |
| 3159 | /* See uma.h */ |
| 3160 | void |
| 3161 | uma_zdestroy(uma_zone_t zone) |
| 3162 | { |
| 3163 | |
| 3164 | /* |
| 3165 | * Large slabs are expensive to reclaim, so don't bother doing |
| 3166 | * unnecessary work if we're shutting down. |
| 3167 | */ |
| 3168 | if (booted == BOOT_SHUTDOWN && |
| 3169 | zone->uz_fini == NULL && zone->uz_release == zone_release) |
| 3170 | return; |
| 3171 | sx_slock(&uma_reclaim_lock); |
| 3172 | zone_free_item(zones, zone, NULL, SKIP_NONE); |
| 3173 | sx_sunlock(&uma_reclaim_lock); |
| 3174 | } |
| 3175 | |
| 3176 | void |
| 3177 | uma_zwait(uma_zone_t zone) |
no test coverage detected