diff options
author | Pawel Biernacki <kaktus@FreeBSD.org> | 2020-02-24 10:37:56 +0000 |
---|---|---|
committer | Pawel Biernacki <kaktus@FreeBSD.org> | 2020-02-24 10:37:56 +0000 |
commit | d3d10ed299f9b0d81ec9c6a58da5438463846099 (patch) | |
tree | 628c78c9686d37189544f7474939b54bea0d401d | |
parent | c5a017219f2fee7268c3af0ad44455cd1665e0e6 (diff) | |
download | src-d3d10ed299f9b0d81ec9c6a58da5438463846099.tar.gz src-d3d10ed299f9b0d81ec9c6a58da5438463846099.zip |
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
Notes
Notes:
svn path=/head/; revision=358277
-rw-r--r-- | sys/fs/pseudofs/pseudofs.c | 2 | ||||
-rw-r--r-- | sys/fs/pseudofs/pseudofs_vncache.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/pseudofs/pseudofs.c b/sys/fs/pseudofs/pseudofs.c index cef0a02a273d..44473a926182 100644 --- a/sys/fs/pseudofs/pseudofs.c +++ b/sys/fs/pseudofs/pseudofs.c @@ -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 diff --git a/sys/fs/pseudofs/pseudofs_vncache.c b/sys/fs/pseudofs/pseudofs_vncache.c index 1a127e5e1998..6fd73babaf30 100644 --- a/sys/fs/pseudofs/pseudofs_vncache.c +++ b/sys/fs/pseudofs/pseudofs_vncache.c @@ -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; |