]> granicus.if.org Git - zfs/commitdiff
taskq_create() calls thread_create() with wrong arguments
authorDenys Rtveliashvili <denys@rtveliashvili.name>
Thu, 5 May 2016 16:24:12 +0000 (17:24 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 5 May 2016 16:24:12 +0000 (09:24 -0700)
Correct the arguments passed to `thread_create()`.

Signed-off-by: Isaac Huang <he.huang@intel.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4593

lib/libzpool/taskq.c

index bd92e61ab04db489f9ee7a147f158e85130cb151..1d50d0edc2422cb6f5b814962c5f75863246a8aa 100644 (file)
@@ -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);
 }