svn commit: r304095 - stable/11/sys/vm

Mark Johnston markj at FreeBSD.org
Sun Aug 14 19:03:35 UTC 2016


Author: markj
Date: Sun Aug 14 19:03:33 2016
New Revision: 304095
URL: https://svnweb.freebsd.org/changeset/base/304095

Log:
  MFC r303059
  Release the second critical section in uma_zfree_arg() slightly earlier.

Modified:
  stable/11/sys/vm/uma_core.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/vm/uma_core.c
==============================================================================
--- stable/11/sys/vm/uma_core.c	Sun Aug 14 19:02:57 2016	(r304094)
+++ stable/11/sys/vm/uma_core.c	Sun Aug 14 19:03:33 2016	(r304095)
@@ -2744,6 +2744,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) {
@@ -2756,9 +2758,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.


More information about the svn-src-all mailing list