summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2007-04-14 12:33:47 +0000
committerpjd <pjd@FreeBSD.org>2007-04-14 12:33:47 +0000
commit7379980465f4988fa2f1ccda460434010e445a4d (patch)
tree946eef50a8f2a9c3016989bcb8efc829c4c08cff /sys/cddl
parentd1eb6afd2d375906ecfdc3cc71155c2529dbf1ed (diff)
downloadFreeBSD-src-7379980465f4988fa2f1ccda460434010e445a4d.zip
FreeBSD-src-7379980465f4988fa2f1ccda460434010e445a4d.tar.gz
MFp4: Use max_ncpus, which is used in other places in the code.
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c2
1 files changed, 1 insertions, 1 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,
OpenPOWER on IntegriCloud