aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/mmp.c
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-06-23 16:32:42 -0400
committerGitHub <[email protected]>2020-06-23 13:32:42 -0700
commit9192f27c1d7a8cb367d8691277573f2b756b47b6 (patch)
tree7a51da8b4877cbb24171b7a95bad5104d06dfcce /module/zfs/mmp.c
parent2451a553681fac5e7e42bd794adbf5587bce6749 (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 'module/zfs/mmp.c')
-rw-r--r--module/zfs/mmp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/module/zfs/mmp.c b/module/zfs/mmp.c
index e1e468557..4170d7e03 100644
--- a/module/zfs/mmp.c
+++ b/module/zfs/mmp.c
@@ -715,6 +715,12 @@ mmp_signal_all_threads(void)
mutex_exit(&spa_namespace_lock);
}
+/* BEGIN CSTYLED */
+ZFS_MODULE_PARAM_CALL(zfs_multihost, zfs_multihost_, interval,
+ param_set_multihost_interval, param_get_ulong, ZMOD_RW,
+ "Milliseconds between mmp writes to each leaf");
+/* END CSTYLED */
+
ZFS_MODULE_PARAM(zfs_multihost, zfs_multihost_, fail_intervals, UINT, ZMOD_RW,
"Max allowed period without a successful mmp write");