MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vdev_queue_io_add

Function vdev_queue_io_add

freebsd/contrib/openzfs/module/zfs/vdev_queue.c:516–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516static void
517vdev_queue_io_add(vdev_queue_t *vq, zio_t *zio)
518{
519 spa_t *spa = zio->io_spa;
520 spa_history_kstat_t *shk = &spa->spa_stats.io_history;
521
522 ASSERT3U(zio->io_priority, <, ZIO_PRIORITY_NUM_QUEUEABLE);
523 avl_add(vdev_queue_class_tree(vq, zio->io_priority), zio);
524 avl_add(vdev_queue_type_tree(vq, zio->io_type), zio);
525
526 if (shk->kstat != NULL) {
527 mutex_enter(&shk->lock);
528 kstat_waitq_enter(shk->kstat->ks_data);
529 mutex_exit(&shk->lock);
530 }
531}
532
533static void
534vdev_queue_io_remove(vdev_queue_t *vq, zio_t *zio)

Callers 1

vdev_queue_ioFunction · 0.85

Calls 6

avl_addFunction · 0.85
vdev_queue_class_treeFunction · 0.85
vdev_queue_type_treeFunction · 0.85
mutex_enterFunction · 0.85
mutex_exitFunction · 0.85
kstat_waitq_enterFunction · 0.50

Tested by

no test coverage detected