diff --git a/module/zfs/spa.c b/module/zfs/spa.c index a220ae393ea8..9c9d5a542009 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -845,7 +845,7 @@ spa_taskqs_init(spa_t *spa, zio_type_t t, zio_taskq_type_t q) uint_t count = ztip->zti_count; spa_taskqs_t *tqs = &spa->spa_zio_taskq[t][q]; char name[32]; - uint_t i, flags = TASKQ_DYNAMIC; + uint_t i, flags = 0; boolean_t batch = B_FALSE; if (mode == ZTI_MODE_NULL) { @@ -863,6 +863,7 @@ spa_taskqs_init(spa_t *spa, zio_type_t t, zio_taskq_type_t q) case ZTI_MODE_FIXED: ASSERT3U(value, >=, 1); value = MAX(value, 1); + flags |= TASKQ_DYNAMIC; break; case ZTI_MODE_BATCH: