mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
taskq_create() calls thread_create() with wrong arguments
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
This commit is contained in:
parent
e0ab3ab553
commit
498056ab1e
@ -308,7 +308,7 @@ taskq_create(const char *name, int nthreads, pri_t pri,
|
|||||||
|
|
||||||
for (t = 0; t < nthreads; t++)
|
for (t = 0; t < nthreads; t++)
|
||||||
VERIFY((tq->tq_threadlist[t] = thread_create(NULL, 0,
|
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);
|
return (tq);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user