MFC r303059

Release the second critical section in uma_zfree_arg() slightly earlier.
This commit is contained in:
Mark Johnston 2016-08-14 19:02:57 +00:00
parent 849f6e54c1
commit 3408237087
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=304094

View File

@ -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.