Annotate sysctlmemlock with __exclusive_cache_line.

MFC after:	1 week
This commit is contained in:
Mateusz Guzik 2017-09-27 01:27:43 +00:00
parent 0da36218ad
commit 956713cb74

View File

@ -88,7 +88,7 @@ static MALLOC_DEFINE(M_SYSCTLTMP, "sysctltmp", "sysctl temp output buffer");
* 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)