diff options
author | Denys Rtveliashvili <[email protected]> | 2016-05-05 17:24:12 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-05-05 09:24:12 -0700 |
commit | 498056ab1e8b9cf9d124b75d72e24a097bac5b90 (patch) | |
tree | 8e3af217d91c7f5ff8d6bbd8baede47db8f4924c /lib | |
parent | e0ab3ab553e36595344d9cbdc240d380ad203b60 (diff) |
taskq_create() calls thread_create() with wrong arguments
Correct the arguments passed to `thread_create()`.
Signed-off-by: Isaac Huang <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4593
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzpool/taskq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzpool/taskq.c b/lib/libzpool/taskq.c index bd92e61ab..1d50d0edc 100644 --- a/lib/libzpool/taskq.c +++ b/lib/libzpool/taskq.c @@ -308,7 +308,7 @@ taskq_create(const char *name, int nthreads, pri_t pri, for (t = 0; t < nthreads; t++) VERIFY((tq->tq_threadlist[t] = thread_create(NULL, 0, - taskq_thread, tq, TS_RUN, NULL, 0, pri)) != NULL); + taskq_thread, tq, 0, &p0, TS_RUN, pri)) != NULL); return (tq); } |