svn commit: r365979 - stable/12/sys/cddl/compat/opensolaris/kern
Mark Johnston
markj at FreeBSD.org
Mon Sep 21 22:22:06 UTC 2020
Author: markj
Date: Mon Sep 21 22:22:06 2020
New Revision: 365979
URL: https://svnweb.freebsd.org/changeset/base/365979
Log:
Mark sysctls added in r365689 as MPSAFE.
This is a direct commit to stable/12.
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D26507
Modified:
stable/12/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c
Modified: stable/12/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c
==============================================================================
--- stable/12/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c Mon Sep 21 22:21:59 2020 (r365978)
+++ stable/12/sys/cddl/compat/opensolaris/kern/opensolaris_kstat.c Mon Sep 21 22:22:06 2020 (r365979)
@@ -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);
}
}
More information about the svn-src-all
mailing list