svn commit: r324044 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Wed Sep 27 01:27:44 UTC 2017


Author: mjg
Date: Wed Sep 27 01:27:43 2017
New Revision: 324044
URL: https://svnweb.freebsd.org/changeset/base/324044

Log:
  Annotate sysctlmemlock with __exclusive_cache_line.
  
  MFC after:	1 week

Modified:
  head/sys/kern/kern_sysctl.c

Modified: head/sys/kern/kern_sysctl.c
==============================================================================
--- head/sys/kern/kern_sysctl.c	Wed Sep 27 01:12:47 2017	(r324043)
+++ head/sys/kern/kern_sysctl.c	Wed Sep 27 01:27:43 2017	(r324044)
@@ -88,7 +88,7 @@ static MALLOC_DEFINE(M_SYSCTLTMP, "sysctltmp", "sysctl
  * sysctl requests larger than a single page via an exclusive lock.
  */
 static struct rmlock sysctllock;
-static struct sx sysctlmemlock;
+static struct sx __exclusive_cache_line sysctlmemlock;
 
 #define	SYSCTL_WLOCK()		rm_wlock(&sysctllock)
 #define	SYSCTL_WUNLOCK()	rm_wunlock(&sysctllock)


More information about the svn-src-all mailing list