aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2022-08-09 09:05:29 +0000
committerBrian Behlendorf <[email protected]>2022-09-02 13:26:04 -0700
commit4723eba8c0af10fc25d9203ffa0cd4499b4a875d (patch)
tree12b2b7cef7604f9ac51d59e01a016ee7d7fa1ee4 /include
parent899355d293830f250e46d6b651db5afed08b91ea (diff)
FreeBSD: Mark ZFS_MODULE_PARAM_CALL as MPSAFE
ZFS_MODULE_PARAM_CALL handlers implement their own locking if needed and do not require Giant. Reviewed-by: Alexander Motin <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #13756
Diffstat (limited to 'include')
-rw-r--r--include/os/freebsd/spl/sys/mod_os.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/os/freebsd/spl/sys/mod_os.h b/include/os/freebsd/spl/sys/mod_os.h
index 3a9ebbfc3..d64a1733a 100644
--- a/include/os/freebsd/spl/sys/mod_os.h
+++ b/include/os/freebsd/spl/sys/mod_os.h
@@ -47,7 +47,7 @@
#define ZFS_MODULE_PARAM_CALL_IMPL(parent, name, perm, args, desc) \
SYSCTL_DECL(parent); \
- SYSCTL_PROC(parent, OID_AUTO, name, perm | args, desc)
+ SYSCTL_PROC(parent, OID_AUTO, name, CTLFLAG_MPSAFE | perm | args, desc)
#define ZFS_MODULE_PARAM_CALL( \
scope_prefix, name_prefix, name, func, _, perm, desc) \