aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-10-16 18:37:31 -0700
committerBrian Behlendorf <[email protected]>2019-10-16 18:37:31 -0700
commit0e939e434a254224907cc379a0e7039984221500 (patch)
tree831e287780352fa6d65020e4c9e3cfe28ef89825 /module/zfs
parentcf2eba666e6b959a9705de27c0203a2aad93c7b9 (diff)
Move linux specific mmp module_param_call handler to platform code
Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #9465
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/mmp.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/module/zfs/mmp.c b/module/zfs/mmp.c
index ae8d6b1a0..f1a30f877 100644
--- a/module/zfs/mmp.c
+++ b/module/zfs/mmp.c
@@ -716,36 +716,8 @@ mmp_signal_all_threads(void)
mutex_exit(&spa_namespace_lock);
}
-#if defined(_KERNEL)
-
-static int
-param_set_multihost_interval(const char *val, zfs_kernel_param_t *kp)
-{
- int ret;
-
- ret = param_set_ulong(val, kp);
- if (ret < 0)
- return (ret);
-
- if (spa_mode_global != 0)
- mmp_signal_all_threads();
-
- return (ret);
-}
-
-#endif
-
-/* BEGIN CSTYLED */
-#if defined(_KERNEL)
-module_param_call(zfs_multihost_interval, param_set_multihost_interval,
- param_get_ulong, &zfs_multihost_interval, 0644);
-MODULE_PARM_DESC(zfs_multihost_interval,
- "Milliseconds between mmp writes to each leaf");
-#endif
-
ZFS_MODULE_PARAM(zfs_multihost, zfs_multihost_, fail_intervals, UINT, ZMOD_RW,
"Max allowed period without a successful mmp write");
ZFS_MODULE_PARAM(zfs_multihost, zfs_multihost_, import_intervals, UINT, ZMOD_RW,
"Number of zfs_multihost_interval periods to wait for activity");
-/* END CSTYLED */