From 8bdcfb10d306e16a4a06592a327682e3a9f190f8 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Thu, 13 Feb 2020 22:16:02 +0000 Subject: [PATCH] Annotate suser_enabled as __read_mostly It is read a lot in priv code. --- sys/kern/kern_priv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_priv.c b/sys/kern/kern_priv.c index 98271195d9fd..a38f4f53e099 100644 --- a/sys/kern/kern_priv.c +++ b/sys/kern/kern_priv.c @@ -54,7 +54,7 @@ __FBSDID("$FreeBSD$"); * userland programs, and should not be done without careful consideration of * the consequences. */ -static int suser_enabled = 1; +static int __read_mostly suser_enabled = 1; SYSCTL_INT(_security_bsd, OID_AUTO, suser_enabled, CTLFLAG_RWTUN, &suser_enabled, 0, "processes with uid 0 have privilege");