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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to