summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/vm/uma_core.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 6f99176..1af1122 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -1123,15 +1123,15 @@ zone_dtor(void *arg, int size, void *udata)
zone = (uma_zone_t)arg;
- mtx_lock(&uma_mtx);
- LIST_REMOVE(zone, uz_link);
- mtx_unlock(&uma_mtx);
-
ZONE_LOCK(zone);
zone->uz_wssize = 0;
ZONE_UNLOCK(zone);
+ mtx_lock(&uma_mtx);
+ LIST_REMOVE(zone, uz_link);
zone_drain(zone);
+ mtx_unlock(&uma_mtx);
+
ZONE_LOCK(zone);
if (zone->uz_free != 0)
printf("Zone %s was not empty. Lost %d pages of memory.\n",
OpenPOWER on IntegriCloud