mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00:00
MFp4: Use max_ncpus, which is used in other places in the code.
This commit is contained in:
parent
8870baf005
commit
8aff52ca4e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168715
@ -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…
Reference in New Issue
Block a user