mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 02:44:41 +03:00
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 <eli.rosenthal@delphix.com> Reviewed by: Paul Dagnelie <pcd@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Ported-by: George Melikov mail@gmelikov.ru OpenZFS-issue: https://www.illumos.org/issues/6871 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/8fc9228 Closes #5621
This commit is contained in:
committed by
Brian Behlendorf
parent
9ef3906a5a
commit
e2a65adbb8
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user