summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2019-10-31 09:52:22 -0700
committerBrian Behlendorf <[email protected]>2019-10-31 09:52:22 -0700
commit2a3aa5a109bffb6cd350bb9e978292358c104f8f (patch)
tree8bde7c582976aa3369191b620d57dcb205d1d2fe /include
parent936e2d6d3ea8745d8a4148ec9fa7b060fd64448a (diff)
Factor Linux specific code out of spa_misc.c
Move these Linux module parameter get/set helpers in to platform specific code. Reviewed-by: Igor Kozhukhov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #9457
Diffstat (limited to 'include')
-rw-r--r--include/os/linux/kernel/linux/mod_compat.h2
-rw-r--r--include/sys/spa.h5
-rw-r--r--include/sys/spa_impl.h2
3 files changed, 8 insertions, 1 deletions
diff --git a/include/os/linux/kernel/linux/mod_compat.h b/include/os/linux/kernel/linux/mod_compat.h
index 5579cb5bf..11df19411 100644
--- a/include/os/linux/kernel/linux/mod_compat.h
+++ b/include/os/linux/kernel/linux/mod_compat.h
@@ -53,6 +53,7 @@ enum scope_prefix_types {
zfs_condense,
zfs_dbuf,
zfs_dbuf_cache,
+ zfs_deadman,
zfs_l2arc,
zfs_livelist,
zfs_livelist_condense,
@@ -71,6 +72,7 @@ enum scope_prefix_types {
zfs_vdev_mirror,
zfs_zio,
zfs_zil,
+ spa
};
/*
diff --git a/include/sys/spa.h b/include/sys/spa.h
index 3780fdae0..cb9157738 100644
--- a/include/sys/spa.h
+++ b/include/sys/spa.h
@@ -1171,6 +1171,11 @@ extern int spa_wait_tag(const char *name, zpool_wait_activity_t activity,
extern void spa_notify_waiters(spa_t *spa);
extern void spa_wake_waiters(spa_t *spa);
+/* module param call functions */
+int param_set_deadman_ziotime(const char *val, zfs_kernel_param_t *kp);
+int param_set_deadman_synctime(const char *val, zfs_kernel_param_t *kp);
+int param_set_slop_shift(const char *buf, zfs_kernel_param_t *kp);
+
#ifdef ZFS_DEBUG
#define dprintf_bp(bp, fmt, ...) do { \
if (zfs_flags & ZFS_DEBUG_DPRINTF) { \
diff --git a/include/sys/spa_impl.h b/include/sys/spa_impl.h
index 8dfd46431..c83252bca 100644
--- a/include/sys/spa_impl.h
+++ b/include/sys/spa_impl.h
@@ -433,7 +433,7 @@ struct spa {
};
extern char *spa_config_path;
-
+extern int spa_slop_shift;
extern void spa_taskq_dispatch_ent(spa_t *spa, zio_type_t t, zio_taskq_type_t q,
task_func_t *func, void *arg, uint_t flags, taskq_ent_t *ent);
extern void spa_taskq_dispatch_sync(spa_t *, zio_type_t t, zio_taskq_type_t q,