MFp4: Use max_ncpus, which is used in other places in the code.
This commit is contained in:
parent
8870baf005
commit
8aff52ca4e
@ -127,7 +127,7 @@ spa_activate(spa_t *spa)
|
||||
spa->spa_normal_class = metaslab_class_create();
|
||||
|
||||
if (nthreads == 0)
|
||||
nthreads = mp_ncpus;
|
||||
nthreads = max_ncpus;
|
||||
for (t = 0; t < ZIO_TYPES; t++) {
|
||||
snprintf(name, sizeof(name), "spa_zio_issue %d", t);
|
||||
spa->spa_zio_issue_taskq[t] = taskq_create(name, nthreads,
|
||||
|
@ -127,7 +127,7 @@ spa_activate(spa_t *spa)
|
||||
spa->spa_normal_class = metaslab_class_create();
|
||||
|
||||
if (nthreads == 0)
|
||||
nthreads = mp_ncpus;
|
||||
nthreads = max_ncpus;
|
||||
for (t = 0; t < ZIO_TYPES; t++) {
|
||||
snprintf(name, sizeof(name), "spa_zio_issue %d", t);
|
||||
spa->spa_zio_issue_taskq[t] = taskq_create(name, nthreads,
|
||||
|
Loading…
x
Reference in New Issue
Block a user