aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-09-22 01:35:55 +0000
committerMark Johnston <markj@FreeBSD.org>2020-09-22 01:35:55 +0000
commit8f19517f32870cab1afa64c856374a6baa933c40 (patch)
tree8ef557d2f2d984128aa9d93676cff7f0ad79f257
parentfe6dbcf75730bec1bb0fb84f49811d4392e7742e (diff)
downloadsrc-8f19517f32870cab1afa64c856374a6baa933c40.tar.gz
src-8f19517f32870cab1afa64c856374a6baa933c40.zip
MFS r365979:
Mark sysctls added in r365689 as MPSAFE. Approved by: re (gjb)
Notes
Notes: svn path=/releng/12.2/; revision=365985
-rw-r--r--sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c b/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c
index 05567ad2102f..1885264f8d06 100644
--- a/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c
+++ b/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c
@@ -184,16 +184,16 @@ kstat_install(kstat_t *ksp)
SYSCTL_ADD_PROC(&ksp->ks_sysctl_ctx,
SYSCTL_CHILDREN(ksp->ks_sysctl_root),
OID_AUTO, ksent->name,
- CTLTYPE_STRING | CTLFLAG_RD, ksp, i,
- kstat_sysctl_string, "A", ksent->desc);
+ CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE,
+ ksp, i, kstat_sysctl_string, "A", ksent->desc);
continue;
}
KASSERT(ksent->data_type == KSTAT_DATA_UINT64,
("data_type=%d", ksent->data_type));
SYSCTL_ADD_PROC(&ksp->ks_sysctl_ctx,
SYSCTL_CHILDREN(ksp->ks_sysctl_root), OID_AUTO, ksent->name,
- CTLTYPE_U64 | CTLFLAG_RD, ksp, i,
- kstat_sysctl, "QU", ksent->desc);
+ CTLTYPE_U64 | CTLFLAG_RD | CTLFLAG_MPSAFE,
+ ksp, i, kstat_sysctl, "QU", ksent->desc);
}
}