Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2016 19:03:34 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r304095 - stable/11/sys/vm
Message-ID:  <201608141903.u7EJ3Ylf047690@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608141903.u7EJ3Ylf047690>