From 3408237087d657b4cab0e5c12181e5475d334a8c Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Sun, 14 Aug 2016 19:02:57 +0000 Subject: [PATCH] MFC r303059 Release the second critical section in uma_zfree_arg() slightly earlier. --- sys/vm/uma_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index ee0b2071f4db..11dceebb796a 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -2770,6 +2770,8 @@ zfree_start: goto zfree_start; } cache->uc_freebucket = NULL; + /* We are no longer associated with this CPU. */ + critical_exit(); /* Can we throw this on the zone full list? */ if (bucket != NULL) { @@ -2782,9 +2784,6 @@ zfree_start: LIST_INSERT_HEAD(&zone->uz_buckets, bucket, ub_link); } - /* We are no longer associated with this CPU. */ - critical_exit(); - /* * We bump the uz count when the cache size is insufficient to * handle the working set.