diff options
author | George Melikov <[email protected]> | 2017-01-24 20:13:49 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-01-24 09:13:49 -0800 |
commit | e2a65adbb83ddad0d8a97dd1415ad30850216336 (patch) | |
tree | b09d1f92e13adb842c0341f611a3fd2f20c11ad4 /cmd/raidz_test | |
parent | 9ef3906a5ab1185e9941bca252c87105fdf77a94 (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 'cmd/raidz_test')
-rw-r--r-- | cmd/raidz_test/raidz_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/raidz_test/raidz_test.c b/cmd/raidz_test/raidz_test.c index 55bfbf0ab..500ac3dae 100644 --- a/cmd/raidz_test/raidz_test.c +++ b/cmd/raidz_test/raidz_test.c @@ -704,7 +704,7 @@ run_sweep(void) VERIFY3P(zk_thread_create(NULL, 0, (thread_func_t)sweep_thread, - (void *) opts, TS_RUN, NULL, 0, 0, + (void *) opts, 0, NULL, TS_RUN, 0, PTHREAD_CREATE_JOINABLE), !=, NULL); } |