Author: markj
Date: Sun Aug 14 19:02:57 2016
New Revision: 304094
URL: https://svnweb.freebsd.org/changeset/base/304094

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

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

Modified: stable/10/sys/vm/uma_core.c
==============================================================================
--- stable/10/sys/vm/uma_core.c Sun Aug 14 19:01:32 2016        (r304093)
+++ stable/10/sys/vm/uma_core.c Sun Aug 14 19:02:57 2016        (r304094)
@@ -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.
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to