Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Sep 2017 01:27:43 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324044 - head/sys/kern
Message-ID:  <201709270127.v8R1Rh2P058664@repo.freebsd.org>

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



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