diff options
author | Ryan Moeller <[email protected]> | 2020-06-23 16:32:42 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-06-23 13:32:42 -0700 |
commit | 9192f27c1d7a8cb367d8691277573f2b756b47b6 (patch) | |
tree | 7a51da8b4877cbb24171b7a95bad5104d06dfcce /include | |
parent | 2451a553681fac5e7e42bd794adbf5587bce6749 (diff) |
Add zfs_multihost_interval tunable handler for FreeBSD
This tunable required a handler to be implemented for
ZFS_MODULE_PARAM_CALL.
Add the handler so the tunable can be declared in common code.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10490
Diffstat (limited to 'include')
-rw-r--r-- | include/os/freebsd/spl/sys/mod_os.h | 3 | ||||
-rw-r--r-- | include/sys/mmp.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/os/freebsd/spl/sys/mod_os.h b/include/os/freebsd/spl/sys/mod_os.h index d81d927fd..9a3b29e1e 100644 --- a/include/os/freebsd/spl/sys/mod_os.h +++ b/include/os/freebsd/spl/sys/mod_os.h @@ -72,6 +72,9 @@ #define param_set_deadman_ziotime_args(var) \ CTLTYPE_ULONG, NULL, 0, param_set_deadman_ziotime, "LU" +#define param_set_multihost_interval_args(var) \ + CTLTYPE_ULONG, &var, 0, param_set_multihost_interval, "LU" + #define param_set_slop_shift_args(var) \ CTLTYPE_INT, &var, 0, param_set_slop_shift, "I" diff --git a/include/sys/mmp.h b/include/sys/mmp.h index 527e3323b..ce9c4496a 100644 --- a/include/sys/mmp.h +++ b/include/sys/mmp.h @@ -63,6 +63,7 @@ extern void mmp_update_uberblock(struct spa *spa, struct uberblock *ub); extern void mmp_signal_all_threads(void); /* Global tuning */ +extern int param_set_multihost_interval(ZFS_MODULE_PARAM_ARGS); extern ulong_t zfs_multihost_interval; extern uint_t zfs_multihost_fail_intervals; extern uint_t zfs_multihost_import_intervals; |