summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGeorge Melikov <[email protected]>2017-01-24 20:13:49 +0300
committerBrian Behlendorf <[email protected]>2017-01-24 09:13:49 -0800
commite2a65adbb83ddad0d8a97dd1415ad30850216336 (patch)
treeb09d1f92e13adb842c0341f611a3fd2f20c11ad4 /include
parent9ef3906a5ab1185e9941bca252c87105fdf77a94 (diff)
OpenZFS 6871 - libzpool implementation of thread_create should enforce length is 0
Porting notes: - Several direct callers of zk_thread_create() are passing TS_RUN for the length. The `len` and `state` were inverted,this commit fixes them. Authored by: Eli Rosenthal <[email protected]> Reviewed by: Paul Dagnelie <[email protected]> Reviewed by: Matthew Ahrens <[email protected]> Approved by: Robert Mustacchi <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Ported-by: George Melikov [email protected] OpenZFS-issue: https://www.illumos.org/issues/6871 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/8fc9228 Closes #5621
Diffstat (limited to 'include')
-rw-r--r--include/sys/zfs_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h
index 6e950716c..bca89e1c9 100644
--- a/include/sys/zfs_context.h
+++ b/include/sys/zfs_context.h
@@ -262,7 +262,7 @@ typedef struct kthread {
extern kthread_t *zk_thread_current(void);
extern void zk_thread_exit(void);
extern kthread_t *zk_thread_create(caddr_t stk, size_t stksize,
- thread_func_t func, void *arg, size_t len,
+ thread_func_t func, void *arg, uint64_t len,
proc_t *pp, int state, pri_t pri, int detachstate);
extern void zk_thread_join(kt_did_t tid);