Lines Matching defs:spa
294 spa_t *spa = zio->io_spa;
300 mutex_enter(&spa->spa_iokstat_lock);
301 spa->spa_queue_stats[zio->io_priority].spa_queued++;
302 if (spa->spa_iokstat != NULL)
303 kstat_waitq_enter(spa->spa_iokstat->ks_data);
304 mutex_exit(&spa->spa_iokstat_lock);
310 spa_t *spa = zio->io_spa;
316 mutex_enter(&spa->spa_iokstat_lock);
317 ASSERT3U(spa->spa_queue_stats[zio->io_priority].spa_queued, >, 0);
318 spa->spa_queue_stats[zio->io_priority].spa_queued--;
319 if (spa->spa_iokstat != NULL)
320 kstat_waitq_exit(spa->spa_iokstat->ks_data);
321 mutex_exit(&spa->spa_iokstat_lock);
327 spa_t *spa = zio->io_spa;
333 mutex_enter(&spa->spa_iokstat_lock);
334 spa->spa_queue_stats[zio->io_priority].spa_active++;
335 if (spa->spa_iokstat != NULL)
336 kstat_runq_enter(spa->spa_iokstat->ks_data);
337 mutex_exit(&spa->spa_iokstat_lock);
343 spa_t *spa = zio->io_spa;
349 mutex_enter(&spa->spa_iokstat_lock);
350 ASSERT3U(spa->spa_queue_stats[zio->io_priority].spa_active, >, 0);
351 spa->spa_queue_stats[zio->io_priority].spa_active--;
352 if (spa->spa_iokstat != NULL) {
353 kstat_io_t *ksio = spa->spa_iokstat->ks_data;
355 kstat_runq_exit(spa->spa_iokstat->ks_data);
364 mutex_exit(&spa->spa_iokstat_lock);
403 vdev_queue_max_async_writes(spa_t *spa)
406 uint64_t dirty = spa->spa_dsl_pool->dp_dirty_total;
416 if (spa_has_pending_synctask(spa)) {
442 vdev_queue_class_max_active(spa_t *spa, zio_priority_t p)
452 return (vdev_queue_max_async_writes(spa));
468 spa_t *spa = vq->vq_vdev->vdev_spa;
489 vdev_queue_class_max_active(spa, p))