svn commit: r358277 - head/sys/fs/pseudofs
Pawel Biernacki
kaktus at FreeBSD.org
Mon Feb 24 10:37:57 UTC 2020
Author: kaktus
Date: Mon Feb 24 10:37:56 2020
New Revision: 358277
URL: https://svnweb.freebsd.org/changeset/base/358277
Log:
Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (10 of many)
r357614 added CTLFLAG_NEEDGIANT to make it easier to find nodes that are
still not MPSAFE (or already are but aren’t properly marked).
Use it in preparation for a general review of all nodes.
This is non-functional change that adds annotations to SYSCTL_NODE and
SYSCTL_PROC nodes using one of the soon-to-be-required flags.
Approved by: kib (mentor, blanket)
Differential Revision: https://reviews.freebsd.org/D23629
Modified:
head/sys/fs/pseudofs/pseudofs.c
head/sys/fs/pseudofs/pseudofs_vncache.c
Modified: head/sys/fs/pseudofs/pseudofs.c
==============================================================================
--- head/sys/fs/pseudofs/pseudofs.c Mon Feb 24 10:35:58 2020 (r358276)
+++ head/sys/fs/pseudofs/pseudofs.c Mon Feb 24 10:37:56 2020 (r358277)
@@ -51,7 +51,7 @@ __FBSDID("$FreeBSD$");
static MALLOC_DEFINE(M_PFSNODES, "pfs_nodes", "pseudofs nodes");
-SYSCTL_NODE(_vfs, OID_AUTO, pfs, CTLFLAG_RW, 0,
+SYSCTL_NODE(_vfs, OID_AUTO, pfs, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
"pseudofs");
#ifdef PSEUDOFS_TRACE
Modified: head/sys/fs/pseudofs/pseudofs_vncache.c
==============================================================================
--- head/sys/fs/pseudofs/pseudofs_vncache.c Mon Feb 24 10:35:58 2020 (r358276)
+++ head/sys/fs/pseudofs/pseudofs_vncache.c Mon Feb 24 10:37:56 2020 (r358277)
@@ -54,7 +54,7 @@ static eventhandler_tag pfs_exit_tag;
static void pfs_exit(void *arg, struct proc *p);
static void pfs_purge_all(void);
-static SYSCTL_NODE(_vfs_pfs, OID_AUTO, vncache, CTLFLAG_RW, 0,
+static SYSCTL_NODE(_vfs_pfs, OID_AUTO, vncache, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
"pseudofs vnode cache");
static int pfs_vncache_entries;
More information about the svn-src-all
mailing list