Date: Sun, 14 Aug 2016 19:02:57 +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-10@freebsd.org Subject: svn commit: r304094 - stable/10/sys/vm Message-ID: <201608141902.u7EJ2vAE047624@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608141902.u7EJ2vAE047624>