diff options
author | Matthew Macy <[email protected]> | 2019-12-05 12:40:45 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-12-05 12:40:45 -0800 |
commit | e64e84eca57966cff1314d61f5b9557876e856e3 (patch) | |
tree | a436377c9184fb2be46f1286a29edf943a94f264 /include | |
parent | 2a8ba608d3eace43010174aa4f67c8b8af4aacf3 (diff) |
Refactor deadman set failmode to be cross platform
Update zfs_deadman_failmode to use the ZFS_MODULE_PARAM_CALL
wrapper, and split the common and platform specific portions.
Reviewed-by: Jorgen Lundman <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9670
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/spa.h | 1 | ||||
-rw-r--r-- | include/sys/spa_impl.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sys/spa.h b/include/sys/spa.h index e460dc2dd..780119e9a 100644 --- a/include/sys/spa.h +++ b/include/sys/spa.h @@ -1182,6 +1182,7 @@ extern void spa_wake_waiters(spa_t *spa); 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); +int param_set_deadman_failmode(const char *val, zfs_kernel_param_t *kp); #ifdef ZFS_DEBUG #define dprintf_bp(bp, fmt, ...) do { \ diff --git a/include/sys/spa_impl.h b/include/sys/spa_impl.h index 5a581214d..9ee04eb25 100644 --- a/include/sys/spa_impl.h +++ b/include/sys/spa_impl.h @@ -433,6 +433,7 @@ struct spa { }; extern char *spa_config_path; +extern char *zfs_deadman_failmode; 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); @@ -443,7 +444,7 @@ extern void spa_load_l2cache(spa_t *spa); extern sysevent_t *spa_event_create(spa_t *spa, vdev_t *vd, nvlist_t *hist_nvl, const char *name); extern void spa_event_post(sysevent_t *ev); - +extern int param_set_deadman_failmode_common(const char *val); #ifdef __cplusplus } |