diff options
author | pjd <pjd@FreeBSD.org> | 2007-04-14 12:33:47 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-04-14 12:33:47 +0000 |
commit | 7379980465f4988fa2f1ccda460434010e445a4d (patch) | |
tree | 946eef50a8f2a9c3016989bcb8efc829c4c08cff | |
parent | d1eb6afd2d375906ecfdc3cc71155c2529dbf1ed (diff) | |
download | FreeBSD-src-7379980465f4988fa2f1ccda460434010e445a4d.zip FreeBSD-src-7379980465f4988fa2f1ccda460434010e445a4d.tar.gz |
MFp4: Use max_ncpus, which is used in other places in the code.
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c | 2 | ||||
-rw-r--r-- | sys/contrib/opensolaris/uts/common/fs/zfs/spa.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c index b1ebfcb..0e649bb 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c @@ -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, diff --git a/sys/contrib/opensolaris/uts/common/fs/zfs/spa.c b/sys/contrib/opensolaris/uts/common/fs/zfs/spa.c index b1ebfcb..0e649bb 100644 --- a/sys/contrib/opensolaris/uts/common/fs/zfs/spa.c +++ b/sys/contrib/opensolaris/uts/common/fs/zfs/spa.c @@ -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, |