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

Function vdev_queue_fini

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

Source from the content-addressed store, hash-verified

499}
500
501void
502vdev_queue_fini(vdev_t *vd)
503{
504 vdev_queue_t *vq = &vd->vdev_queue;
505
506 for (zio_priority_t p = 0; p < ZIO_PRIORITY_NUM_QUEUEABLE; p++)
507 avl_destroy(vdev_queue_class_tree(vq, p));
508 avl_destroy(&vq->vq_active_tree);
509 avl_destroy(vdev_queue_type_tree(vq, ZIO_TYPE_READ));
510 avl_destroy(vdev_queue_type_tree(vq, ZIO_TYPE_WRITE));
511 avl_destroy(vdev_queue_type_tree(vq, ZIO_TYPE_TRIM));
512
513 mutex_destroy(&vq->vq_lock);
514}
515
516static void
517vdev_queue_io_add(vdev_queue_t *vq, zio_t *zio)

Callers 1

vdev_freeFunction · 0.85

Calls 4

avl_destroyFunction · 0.85
vdev_queue_class_treeFunction · 0.85
vdev_queue_type_treeFunction · 0.85
mutex_destroyFunction · 0.85

Tested by

no test coverage detected