MFp4: Use max_ncpus, which is used in other places in the code.

This commit is contained in:
Pawel Jakub Dawidek 2007-04-14 12:33:47 +00:00
parent 8870baf005
commit 8aff52ca4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168715
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,